1.

Examine the following code snippet and find out the output? What will happen if the statement int ch; is replaced by char ch; int ch; for(ch=’A’;ch<=’Z’;++ch)cout<<ch<<";

Answer»

This code snippet will print 65, 66, 67,……., 90. 

If the statement int ch; is replaced by 

char ch; it prints A, B, C, ……., Z.



Discussion

No Comment Found

Related InterviewSolutions