What are the files which are automatically opened when a C
file is executed?
Answer / susie
Answer :
stdin, stdout, stderr (standard input,standard
output,standard error).
Is This Answer Correct ? | 23 Yes | 4 No |
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.
5 Answers IITR, Microsoft, Nike,
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }
Predict the Output: int main() { int *p=(int *)2000; scanf("%d",2000); printf("%d",*p); return 0; } if input is 20 ,what will be print
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
Develop a routine to reflect an object about an arbitrarily selected plane
How to palindrom string in c language?