main()

{

int i=0;

for(;i++;printf("%d",i)) ;

printf("%d",i);

}



main() { int i=0; for(;i++;printf("%d",i)) ; printf(&q..

Answer / susie

Answer :

1

Explanation:

before entering into the for loop the checking condition is
"evaluated". Here it evaluates to 0 (false) and comes out of
the loop, and i is incremented (note the semicolon after the
for loop).

Is This Answer Correct ?    25 Yes 9 No

Post New Answer

More C Code Interview Questions

main() { clrscr(); } clrscr();

2 Answers  


Write a complete program that consists of a function that can receive two numbers from a user (M and N) as a parameter. Then print all the numbers between the two numbers including the number itself. If the value of M is smaller than N, print the numbers in ascending flow. If the value of M is bigger than N, print the numbers in descending flow. may i know how the coding look like?

2 Answers  


How to count a sum, when the numbers are read from stdin and stored into a structure?

1 Answers  


how can i search an element in an array

2 Answers   CTS, Microsoft, ViPrak,


program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,






main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }

1 Answers  


int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }

2 Answers   CSC,


Write a program to receive an integer and find its octal equivalent?

7 Answers  


main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

1 Answers  


Write a routine that prints out a 2-D array in spiral order

3 Answers   Microsoft,


main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

1 Answers  


Categories