4. Main()
{
Int i=3,j=2,c=0,m;
m=i&&j||c&I;
printf(“%d%d%d%d”,I,j,c,m);
}
Answers were Sorted based on User's Feedback
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
Cau u say the output....?
¦void main() ¦{ ¦int i=10,j; ¦ j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-30 but in same question if we write as- ¦void main() ¦{ ¦int i=10; ¦ int j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-33 why output is changed from 30 to 33. Can any body answer...
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
why nlogn is the lower limit of any sort algorithm?
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
void main() { int i=i++,j=j++,k=k++; printf(ā%d%d%dā,i,j,k); }