Home » C Programming » Pointers

What will be the output of the program? #include int main() { char str[20] = "Hello"; char *const p=str; *p='M'; printf("%s\n", str); return 0; }

Correct Answer: Mello

← Previous Question Next Question→

More Questions from Pointers

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion