File size: 567 Bytes
4559903
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include<stdio.h>
void reverse(char*s, int i, int j)
{
char temp;
while(i<j)
{
temp = s[i];
s[i]=s[j];
s[j]=temp;
i++;
j--;
}
}
rev(char *s)
{
   reverse(s,0,strlen(s)-1);
   int j= 0,i=0;
   for(;i<strlen(s);i++)
   {
      if(s[i]==' ')
      {
         reverse(s,j,i-1);
         j=i+1;    
      }
   }
reverse(s,j,i-1);
printf("%s",s);
}
int main()
{
char s[] = "hello abcd world";
rev(s);
int x =2;
int y=3;
x = x++ * ++y; 
y = ++x + ++y; 
printf("\n%d, %d",x,y);
struct a 
{
char s;
int b;
};
printf("%d", sizeof(struct a));
printf("\n%x", -1<<4);
return 0;
}