MENU
Question -

What will be the size of the following constants : тАЬ\aтАЭ. тАЬ\aтАЭ, тАЬManoj\тАЩsтАЭ, тАШ\тАЭ, тАЬXY\ YZтАЭ



Answer -

тАШ\aтАЩ тАУ size is 1 as there is one character and it is a string literal enclosed in single quotes.
тАЬ\aтАЭ тАУ size is 1 as there is one character enclosed in double quotes.
тАЬManoj\тАЩsтАЭ тАУ size is 7 because it is a string having 7 characters enclosed in double quotes.
тАЬ\тАЭ тАУ size is 1. It is a character constant and is containing just one character \тАЭ.
тАЬXY\ тАУ size is 4. It is a multiline string create YZтАЭ with \ in the basic string.

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×