#include<stdio.h> int main() { int n; for(n = 7; n!=0; n--) printf("n = %d", n--); getchar(); return 0; }
It will print out 7, 5, 3 , 1 , -1, -3 , -5 ... and so on
1.
main() { printf("%x",-1<<4); }
2.
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
input: one two three
output: three two one
#include<stdio.h> main() { int a=10; printf("%d\n",a++==a); }
Output should be 1 but it is coming as 0, Can anyone please explain?
input: 1 2 3 4 5 output: 5 4 1 2 3 or 1 2 3 5 4
Can any one tell?