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 are loops c?
Can you subtract pointers from each other? Why would you?
c language interview questions & answer
i have a written test for microland please give me test pattern
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is the use of ?
Why do we use namespace feature?
What is a dynamic array in c?
Process by which one bit pattern in to another by bit wise operation is?
What is a stream?
Which programming language is best for getting job 2020?
Write a program to check armstrong number in c?
What is the difference between text files and binary files?
How do I use void main?
What is the difference between #include and #include 'file' ?