After assigning value to the variable. Why dont we use the double inverted commas ( " ") in the cout function | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

After assigning value to the variable. Why dont we use the double inverted commas ( " ") in the cout function

why don't we use double inverted commas?

25th Feb 2017, 3:09 PM
RAHUL PATIDAR
RAHUL PATIDAR - avatar
1 Respuesta
+ 2
Writing the variables in " " will print the variable name Example: int a = 2; cout <<"a"; This will print "a" and not "2"
25th Feb 2017, 4:08 PM
Ketan Shinde
Ketan Shinde - avatar