Examveda
Examveda

What is the output of this C code?
#include <stdio.h>
main()
{
    char *p = "Examveda C-Test";
    p[0] = 'a';
    p[1] = 'b';
    printf("%s", p);
}

A. abmveda C-Test

B. Examveda C-Test

C. Compile time error

D. Run time error

Answer: Option D


This Question Belongs to C Program >> C Miscellaneous

Join The Discussion

Related Questions on C Miscellaneous