[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Arrays - Discussion

Home > C Programming > Arrays > MCQs Questions Discussion

27 / 55

What is the output of the following 'C' program ?

#include<stdio.h>
#define TOTAL_ELEMENTS sizeof(array)/sizeof (array[0])

int array[] = {23,34,12,17,204,99,16};
int main()
{
int d;
for(d = 0; d <= TOTAL_ELEMENTS; d++)
printf("%d ",array[d]);
return 0;
}

A23 34 12 17 204 99 16 0

B23 34 12 17 204 99 16

C0 0 0 0 0 0 0

DCompilation Error

ENone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here