Declare int variables called a and b.
In the same line in which the variables are declared, immediately assign them different values.
The values can be any integers.
Couldn't understand. Please provide solution for this task
Need Solution
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Jegadeeswaran
15 March 2019, 10:13
int a=5 , b=6; //a value is 5 and b value is 6. Both are different.
0
Karumuri Sneha
11 March 2019, 15:17
int a=2;
int b=3;
0
Ray Nevarez Madrid
16 November 2018, 13:20
It's like a shortcut. Instead of writing two lines:
int a;
a = 2;
You can instead write one line where you immediately assign a value to the variable:
int a = 2;
0
Naveena Amalraj
16 November 2018, 05:57
like
int a=4,b=5;
+2