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
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
write a program to find out prime number using sieve case?
What are the 4 types of functions?
Why is it that not all header files are declared in every C program?
Describe the steps to insert data into a singly linked list.
What is the benefit of using an enum rather than a #define constant?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What are two dimensional arrays alternatively called as?
Is boolean a datatype in c?
Do character constants represent numerical values?
What is a scope resolution operator in c?
What is scope of variable in c?
Explain what are bus errors, memory faults, and core dumps?
What is the purpose of the preprocessor directive error?
What is integer constants?