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 the output of the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

Answers were Sorted based on User's Feedback



what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / praveen

0 0 1 3 1


correct me if im wrong

Is This Answer Correct ?    22 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / vignesh1988i

0 0 1 3 1

as for as i know this is the output........

thank u

Is This Answer Correct ?    7 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / abhradeep chatterjee

0 0 1 3 1

Is This Answer Correct ?    4 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / valli

0 0 1 3 1
m=-1&&-1&&0||2;//i.e,m=1;and i,j,m,l are incrimented

Is This Answer Correct ?    3 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / manojkumar

0 0 1 3 1
this answer is write

Is This Answer Correct ?    2 Yes 0 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / dally

0 0 0 3 1

Is This Answer Correct ?    1 Yes 3 No

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j+..

Answer / nisha

-1 -1 0 2 1

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More C Interview Questions

Explain about C function prototype?

0 Answers  


An entire structure variable can be assigned to another structure variable if __________

3 Answers   Sasken, TCS, Tech Mahindra, Wipro,


What is queue in c?

0 Answers  


what is the use of fflush() function?

2 Answers  


What is c preprocessor mean?

0 Answers  


what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}

9 Answers   TCS,


how to copy a string without using c function

5 Answers  


Explain what will the preprocessor do for a program?

0 Answers  


what is difference between array of characters and string

18 Answers   Accenture, Nest,


What extern c means?

0 Answers  


being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?

1 Answers   TCS,


please give me some tips for the selection in TCS.

3 Answers   TCS,


Categories