Question: What is the problem with the following section of code? int a = 1 2 ; float b = 1 6 ; char c =

What is the problem with the following section of code?
int a=12;
float b=16;
char c=c';
int ans =0;
if(a+b==c)
,a=a+5;
ans =5;
else
ans =7;
a variable is declared incorrectly
you cannot add a float and an int
bracket(s) is missing
semicolon(s) is missing
What is the problem with the following section of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!