Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int lookup[100] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
    printf("%d", lookup[3]);
}

A. 2

B. 4

C. Compile time error

D. 3

Answer: Option D


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union