Programming Languages C++ Objective
Mar 22, 2013

char *ptr; 

 ptr = “hello”; 

 cout << *ptr; 

 What will be printed? 

Choose the correct answer:
A) first letter
B) entire string
C) it is a syntax error
D) last letter
Detailed Explanation

Option A is the right Answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback