Please help me to understand this topic i cant understand by reading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please help me to understand this topic i cant understand by reading

24th May 2017, 7:46 AM
akshat
3 Answers
+ 4
it is a simple explanation : in c++ we have four types of data. and we use them to declare variables . first is integer it is for numbers. keyword : int Ex: int x=5; second is character it is for letter . key word: char Ex: char x='a'; if you want more than one letter in charater data type you can use [] Ex: char x[]="welcome"; remember this ' ' for one letter , however this " "for a sentence. third is float it is for numbers that have decimal as (12.3) key word : float Ex:float x=3.5; fourth is void . and it means nothing , we can use it for speacial functions. keyword : void Ex:void show(){ cout<<"welcome"; } if you have any dout ask ...
24th May 2017, 8:45 AM
Enas Emad
Enas Emad - avatar
+ 2
all data types? O o
24th May 2017, 8:02 AM
jay
jay - avatar
0
data types used by the compile4 to determine the sIze of the variable to reserve in memory and the available operations to be made against this variable
27th May 2017, 7:35 AM
Gohary
Gohary - avatar