what is the error in each of the following statements?
(a) if(m==1 & n!=0)
printf("OK");
(b) if(x=<5)
printf("JUMP");
Answers
Answered by
2
Answer:
Question:
- To find out an error
Code 1:-
if(m==1 & n!=0) //Syntax error
printf("OK");
Correct Code:-
if(m==1 && n!=0)
printf("OK");
Code 2:-
if(x=<5) //Syntax error
printf("Jump");
Correct Code:-
if(x<=5)
printf("Jump");
Similar questions