Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    char *s = "Interview Mania";
    char strArray[] = "Interview Mania";
    printf("%d %d\n", sizeof(s), sizeof(strArray));
    return 0;
    }
    1. 8 16
    2. Compilation Error
    3. Interview Mania
    4. 16 8
    5. None of these
Correct Option: D

8 16



Your comments will be displayed only after manual approval.