Top

Discussion

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;
}

 

  • A.Mello
  • B.Hello
  • C.HMello
  • D.MHello

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment