first static block will be executed so the output will be S then M then constructer will be executed C.
#include<stdio.h> int main() { int n; for(n = 7; n!=0; n--) printf("n = %d", n--); getchar(); return 0; }
1.
main() { printf("%x",-1<<4); }
2.
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
void main(){ int i=320; char *ptr=(char *)&i; printf("%d",*ptr); }
Please provide your explanation also?