Sunday, 4 January 2015

Programming Quiz-69



main()
   {
   int i;
   for(i=0;i<5;i++)
    {
    printf("%d\n", 1L << i);
   }
 }
 

a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16 


Answer: D

No comments:

Post a Comment