PDA

View Full Version : character variables and assignment contain characters variable requirement



sana.pari
04-24-2011, 06:20 PM
Subject: Character Variable
Sir, we not yet study about character variables and assignment contain characters variable requirement please help us :(

Support
04-24-2011, 06:20 PM
Dear student!
Variables are a way of reserving memory to hold some data and assign names to them so that we don't have to remember the numbers like 46735 and instead we can use the memory location by simply referring to the variable.
Every variable in C++ can store a value. However, the type of value which the variable can store has to be specified by the programmer. C++ supports the following inbuilt data types:-
int (to store integer values),
float (to store decimal values)
char (to store characters),
bool (to store Boolean value either 0 or 1)
void (signifies absence of information).
So, character variable is a type of variable that stores characters.