Sail E0 Webinar
Question


What will be the output of the program ?


#include<stdio.h>
int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s\n", str);
return 0;
}
Options:
A .  Mello
B .  Hello
C .  HMello
D .  MHello
Answer: Option A

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers