icon
Related questions
Question
What is the output of the following code snippet?
int main()
{
}
int i = 5;
char* name = "Philip Roger";
cout<< name [i] << endl;
return 0;
р
ip
Roger
The program does not compile due to a syntax error.
Transcribed Image Text:What is the output of the following code snippet? int main() { } int i = 5; char* name = "Philip Roger"; cout<< name [i] << endl; return 0; р ip Roger The program does not compile due to a syntax error.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer