What will be the output? int main() { char *ptr = "knowledgegate";…

What will be the output?

int main()

{

char *ptr = "knowledgegate";

printf("%c\n", *&*&*ptr);

return 0;

}

  1. A.

    Compiler Error

  2. B.

    Garbage Value

  3. C.

    Runtime Error

  4. D.

    k

Attempted by 480 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…