Home » C Programming » Pointers » Question
  1. What will be the output of the following C code (considering sizeof char is 1 and pointer is 4)?
    #include <stdio.h>
    int main()
    {
    char *ch[2] = {"Manjesh", "Ojha"};
    printf("%d", sizeof(ch));
    return 0;
    }
    1. 1
    2. 2
    3. 3
    4. 4
    5. Depends on compiler
Correct Option: E

Depends on compiler



Your comments will be displayed only after manual approval.