Question: multiple question(choose the correct answer : find out the logical error in the following line of code: if(x=10) { cout <
multiple question(choose the correct answer : find out the logical error in the following line of code: if(x=10) { cout<<"x is 10";}
none of these
assignment operator should not be used for comparison
10 should be enclosed in quotations
variable x should not be inside parenthesis
there is no semicolon at the end of if condition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
