How to name a variable with the name int? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to name a variable with the name int?

Does any body know how to name a variable int or float? This doesn't work int int = 5; I don't need this info. Just curius to know 😀

3rd Aug 2017, 12:08 PM
Damon Keane
4 Answers
+ 7
These are reserved keywords in C++ which cannot be used for naming purposes. :>
3rd Aug 2017, 12:12 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
A Ok
3rd Aug 2017, 12:11 PM
Damon Keane
+ 2
since most of the languages are case sensitive then u can use something like.. int Int=5; cout<<Int;
3rd Aug 2017, 12:45 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
maby int_ would work or iNt
3rd Aug 2017, 1:40 PM
D_Stark
D_Stark - avatar