Home » C Programming » Strings » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    char *s = "hello, Interveiw, Mania\n";
    printf("%d", strlen(s));

    }
    1. hello
    2. Interveiw, Mania
    3. 24
    4. Compilation Error
    5. None of these
Correct Option: C

24



Your comments will be displayed only after manual approval.