Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char a[2][6] = {"hello", "hi"};
    printf("%d", sizeof(a));
    return 0;
}

A. 9

B. 12

C. 8

D. 10

Answer: Option B


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer