Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the purpose of clrscr () printf () and getch ()?

1073


What is a c token and types of c tokens?

1069


What does void main return?

1127


What is this infamous null pointer, anyway?

1061


What are variables c?

1055


How was c created?

1065


What are enumerated types?

1195


What is openmp in c?

1024


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1092


Is python a c language?

1016


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2781


Can one function call another?

1115


What is a pointer value and address in c?

1135


Tell us something about keyword 'auto'.

1074


How do you define a string?

1103