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...

#include<stdio.h>
void main()
{
int a,b,c;
a=b=c=1;
c=++a || ++b && ++c;
printf("%d\t%d\t%d",a,b,c);
}

Answer Posted / geetha

logical ooperation gives output only 0 or 1 that means
true or false.in this && have higher priority so first
excutes ++b&&++c (1&&1=1)true now 2||1=1.then a value is
incremanted in the ||operation indicates any one operation
excutes only .so a value is incremented and b & c values
are 1 displayed

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I convert a string to a number?

1076


Explain zero based addressing.

1008


How do I get a null pointer in my programs?

1100


What are the general description for loop statement and available loop types in c?

1109


Why is void main used?

1087


How pointers are declared?

942


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

994


How can I make it pause before closing the program output window?

1031


Explain what is the difference between #include and #include 'file' ?

1015


What are logical errors and how does it differ from syntax errors?

1287


What is oops c?

1224


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1043


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2288


What is indirection in c?

1056


What is the difference between single charater constant and string constant?

1075