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);
}

Answers were Sorted based on User's Feedback



#include<stdio.h> void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; pri..

Answer / 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

#include<stdio.h> void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; pri..

Answer / gopinath.j

2 1 1

Is This Answer Correct ?    4 Yes 1 No

#include<stdio.h> void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; pri..

Answer / biren

a=2 b=1 c=1
why plz tell me

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More C Interview Questions

Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

0 Answers  


Is register a keyword in c?

0 Answers  


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


program to find the second largest word in a paragraph amongst all words that repeat more thn twice

4 Answers   CTS, iGate,


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

0 Answers   Ignou, Microsoft,


what is difference between getchar,putchar functions and printf and scanf function? does putchar show output only when input given to it

5 Answers   DIT,


Tell me is null always defined as 0(zero)?

0 Answers  


what is unsigened char and what is the difference from char

2 Answers  


What is the use of linkage in c language?

0 Answers  


What would be an example of a structure analogous to structure c?

0 Answers  


explain memory layout of a C program

2 Answers  


Explain what is a const pointer?

0 Answers  


Categories