+ 1
Can I declare a variable in cin statement like "cin>> int a;
3 odpowiedzi
+ 5
You can always play around with it on playground or editors.
If its true Great!
If wrong you would get to know about error and learn something new on your own.
Hope this helps ☺️☺️.
+ 1
No because "a" has no value. Even cin << int a = 1; would not work because cin cannot accept an assignment.
0
See this it will give error
https://code.sololearn.com/c40Hdmkx7fVC/?ref=app