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

Interveiw.Mania



Your comments will be displayed only after manual approval.