what is y value of the code if input x=10
y=5;
if (x==10)
else if(x==9)
elae y=8;
a.9
b.8
c.6
d.7
Answer Posted / prakash
I'm getting "error C2181: illegal else without matching if".
If that is corrected then the output will be y = 5.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of clrscr () printf () and getch ()?
What is a c token and types of c tokens?
What does void main return?
What is this infamous null pointer, anyway?
What are variables c?
How was c created?
What are enumerated types?
What is openmp in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Is python a c language?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Can one function call another?
What is a pointer value and address in c?
Tell us something about keyword 'auto'.
How do you define a string?