Difference between int a,b; & int a; (after new line) int b; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Difference between int a,b; & int a; (after new line) int b;

9th Jan 2017, 7:18 PM
Himanshu Singh
Himanshu Singh - avatar
5 Answers
+ 3
Both are same. In both the cases a and b are declared as integer data type.
10th Jan 2017, 7:32 PM
Rohit Kumar Prasad
Rohit Kumar Prasad - avatar
+ 1
There is no difference between both.
9th Jan 2017, 7:21 PM
Divesh Agarwal
Divesh Agarwal - avatar
+ 1
Same function but written on new line...
13th Jan 2017, 12:23 PM
Omkar Bhalerao
Omkar Bhalerao - avatar
- 1
it is functionally the same
9th Jan 2017, 9:06 PM
ifl
ifl - avatar
- 1
same functions and deferent data type
13th Jan 2017, 7:05 AM
Meeran Dhanush
Meeran Dhanush - avatar