Help with variables

0 Muse Abdirahim · October 18, 2015
Hi guys,

I had a quick question regarding different programming variables. I have listed a few different variables and I have listed which type of variable each one is. Please let me know if I'm correct and if I'm not please explain why.

37.63       float   
32000       integer 
32000.0     float   
'7'         invalid 
'P'         character
'Hippo'     invalid
"Charles"   character

Thanks in advance.

Post a Reply

Replies

Oldest  Newest  Rating
0 Jon Z. · October 21, 2015
'7' is a character
"Charles" is a string (array of characters)
  • 1

C

107,346 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator