C Programming - Control Instructions - Discussion


A char variable can store either an ASCII character or a Unicode character.

[A]. True
[B]. False

Answer: Option A


Yes, we can store either an ASCII character or a Unicode character in a char variable.

Viraj said: (Nov 21, 2010)  
Unicode character is 16 bit.
So how can a 8 bit character type hold Unicode??

Amd said: (May 6, 2011)  
By Default char is 8 bit . ANSI C states sizeof(char) < sizeof(short) < sizeof(long)
Unicode is 16 bit. ASCII is 8 bit. char must be 8 bit..
unicode needs wchars...

Poonam said: (Sep 9, 2011)  
Sometimes char is treated as int then how can a char only stores the above 2?

Ahmed said: (Aug 15, 2012)  
C doesnt supports UNICODE and how can a 8 bit value store a 16 bit value ?

Erin said: (Aug 19, 2015)  
What is a UNICODE character?

Siri said: (Aug 13, 2016)  
What is UNICODE character? Please explain that.

Lokender said: (Aug 10, 2017)  
UNICODE is what language like java supports which is 2bytes long unlike C (1 byte).

The question says, it can store, meaning, some characters in UNICODE which needs 1 byte of storage can be stored absolutely without any loss of data.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.