C Aptitude Question
Output Of the following code ...
#include<stdio.h>
int main()
{
char str[20]="Hello";
char *const p=str;
*p='M';
printf("%s",str);
return 0;
}
The Output is Mello
Output Of the following code ...
#include<stdio.h>
int main()
{
char str[20]="Hello";
char *const p=str;
*p='M';
printf("%s",str);
return 0;
}
The Output is Mello
No comments:
Post a Comment