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


Please Help Members By Posting Answers For Below Questions

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

750


write a program to find out prime number using sieve case?

1728


What are the 4 types of functions?

664


Why is it that not all header files are declared in every C program?

772


Describe the steps to insert data into a singly linked list.

721






What is the benefit of using an enum rather than a #define constant?

769


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1879


What are two dimensional arrays alternatively called as?

760


Is boolean a datatype in c?

651


Do character constants represent numerical values?

945


What is a scope resolution operator in c?

843


What is scope of variable in c?

654


Explain what are bus errors, memory faults, and core dumps?

906


What is the purpose of the preprocessor directive error?

796


What is integer constants?

716