Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void function(char *p)
    {
    printf("%s", p);
    }
    void main()
    {
    char str[] = "Interveiw Mania";
    function(str);
    }
    1. Nothing
    2. Undefined behaviour
    3. Interveiw Mania
    4. Compilation Error
    5. None of these
Correct Option: C

Interveiw Mania



Your comments will be displayed only after manual approval.