CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

int main ( )
{
char P[ ] = " HYDERABAD";
char * c = P +2;
* c = 69 ;
print ("%s",P);
}

What is the output of the above program?

Open in App
Solution

(B)
char *c = P + 2 will replace the character "D' by 'E'
So, the output it HYEERABAD.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Levels of Management
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon