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 Odpowiedź
+ 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