Home » C Programming » Strings » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    char s[15] = "Interview";
    char *s1 = " Mania";
    strcat(s, s1);
    printf("%s %d", s, s[15]);
    }
    1. Interview
    2. Interview Mania 0
    3. Mania
    4. Compilation Error
    5. None of these
Correct Option: B

Interview Mania 0



Your comments will be displayed only after manual approval.