Computer Science, asked by triparnaghosh58, 7 months ago

iii. Find the errors in the following code snippets.
1. int a=12, b=0,
b=b+a,
a=a+b;
2. float a=12.3f, b, c;
c=19.45;
b=a*c;
is 15​

Answers

Answered by riyaamen303
4

Answer

Here in the 1st code

int a=12, b=0,

b=b+a,

a=a+b;

The error is that after initializing data type there no semi-colon.

Also after b=b+a, there is no semi-colon.

                                                 and

In 2nd code there is no error.

Please add as BRAINLIEST if it is correct and sorry if it is wrong.

Similar questions