Saved Bookmarks
| 1. |
Consider the following C++ statement. Are they equivalent?char ch = 67;charch = ‘C’; |
|
Answer» Both the statements are equivalent as they declare ‘ch’ to be char and initialize it with the value of 67. Since this is the ASCII code for ‘C’ , the character constant also can be used to initialize ‘ch’ to 67. |
|