Sunday, 4 January 2015

Programming Quiz-66



main()
  {
  int x=5;
  for(;x==0;x--) {
  printf(“x=%d\n”, x--); }
 }



 

a. 4, 3, 2, 1, 0
b. 1, 2, 3, 4, 5
c. 0, 1, 2, 3, 4
d. none of the above 


Answer: D

No comments:

Post a Comment