Guest_imported
New member
- Jan 1, 1970
- 0
Thanx in advance
1.I declared a variable of type CHAR.My book said you can also store integers in it,but if I ll assign to char variable 65 ,the output will be A.What to do?I´m learning C++ on VC++ program.Could that be cause of my problems?
2.All of integer types have same range(long,short,int).Why?
3.Is placing U and L realy necesseary?In book it says otherwise the value will be stored as int?How would I know,the range is the same.Similar question for U.
unsigned long x=116UL;
Same for floating point type
float x=1.4F
1.I declared a variable of type CHAR.My book said you can also store integers in it,but if I ll assign to char variable 65 ,the output will be A.What to do?I´m learning C++ on VC++ program.Could that be cause of my problems?
2.All of integer types have same range(long,short,int).Why?
3.Is placing U and L realy necesseary?In book it says otherwise the value will be stored as int?How would I know,the range is the same.Similar question for U.
unsigned long x=116UL;
Same for floating point type
float x=1.4F