1.

What are the two specializations of I/O template classes in C++?(a) 16-bit character and wide characters(b) 8-bit character and wide characters(c) 32-bit character and locale characters(d) 64-bit characters and locale charactersI had been asked this question in unit test.My doubt stems from Template Class topic in division Classes of Object Oriented Programming

Answer»

Correct CHOICE is (b) 8-bit CHARACTER and wide characters

The best explanation: The I/O specialization is made with wide character and 8-bit characters. Wide characters are used to STORE the characters that might take more than 1 byte of space in memory or any SIZE that is DIFFERENT from the one that the machine is using.



Discussion

No Comment Found

Related InterviewSolutions