+ 1
Can you declare a variable without initializing it ?
Is it possible to say int a;
7 Antworten
+ 5
It's just a simple example he can declare the variable then get an input from user and give that value to the variable he declared
+ 3
If you mean declare the variable e.g int a;
Then you initialize it a = 9; yes you can do it
+ 2
Yes. E.g. in C/C++/Java:
int a;
is valid.
+ 1
That is exactly what I was thinking. Declare a variable and then accept input