+ 1
so instead of int a; a=10; I can do it like this too int a=10; ?
Im reviewing variables and i found out this question
6 Respostas
+ 4
1:
auto a = 1;
2:
auto a;
a=1;
Which one is error,huh?
Yep It's '2'
+ 1
yeah
+ 1
I think so someone correct me if am wrong
0
Yes you can set the value of 'a' when creating 'a'.
int a = 15;
Ok, this will create an int called a, and set the value to 15.
0
yeah both are same😀
- 1
a