1.

How many bytes used to store “\abc”.

Answer»

A string is automatically appended by a null character.

Here one byte for \a (escape sequence). One byte for character b.

One byte for character c. 

And one byte for null character. 

So a total of 4 bytes needed to store this string.



Discussion

No Comment Found

Related InterviewSolutions