What are the files which are automatically opened when a C
file is executed?



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

Post New Answer

More C Code Interview Questions

void main() { int i=5; printf("%d",i+++++i); }

3 Answers  


void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 Answers  


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 Answers  


main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }

1 Answers  


main() { printf("%x",-1<<4); }

3 Answers   HCL, Sokrati, Zoho,






Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.

2 Answers  


main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }

1 Answers  


why is printf("%d %d %d",i++,--i,i--);

4 Answers   Apple, Cynity, TCS,


write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?

1 Answers  


how to swap 3 nos without using temporary variable

4 Answers   Satyam,


main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }

2 Answers   Wipro,


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


Categories