Showing posts with label Operators. Show all posts
39

39

int main() { int a=1,b=2; a=++a b=b++ > > ++a; printf("%d %d",a,b); } Output: 9 1
Read More
30

30

#include int main() { int a; printf("enter no."); scanf("%d",&a)+1; a=printf("%d",a++)+a; printf("%d...
Read More
23

23

#include #define merge(a,b) a##b main() { int c=merge(4,0); c=c+1; printf("%d",c); return 0; } Output: 41 Logic: in previous post ...
Read More
20

20

#include main() { char a[]="srini selva"; printf("%c\n",*(&a[1])); printf("%s\n",a+6); printf("%c\n...
Read More
19

19

#include main( ) { int a=1,b=2; (a+b)++; printf("%d %d",a,b); } Output: compilation error: Lvalue required. Logic: we can increm...
Read More