Yeah, it's right way.
Also you can declare variables and initialize them later. For example:
int a, b;a=10;b=8;int \: a,\: b; \\ a = 10; \\ b = 8;inta,b;a=10;b=8;
Or you can combine:
int a, b=8;a=10;int \: a, \:b = 8; \\ a = 10;inta,b=8;a=10;
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments