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>
int main()
{ int i=0,j=1,k=2,m,n=0;
m=i++&&j++&&k++||n++;
printf("%d,%d,%d,%d,%d",i,j,k,m,n);
}

Answers were Sorted based on User's Feedback



#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / santhoshrpai

1,1,2,0,1

Is This Answer Correct ?    41 Yes 10 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / g krishna rao

1,1,2,0,1

when it encounters zero it will not check remaining conditions
and go to or conditions and incriment n

Is This Answer Correct ?    3 Yes 2 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / aravind

0,1,2,0,0

Is This Answer Correct ?    11 Yes 11 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / manish soni tagore collage jai

m=i++&&j++&&k++||n++;
in this expression
first
m=0++&&...........
from rule of && opr c1&&c2
if c1 is 0(FLASE) it don't chacke the next expression
so
m=0---------------(1);

after this
m=i++&&j++&&k++||n++;
-----------------------
m=i++&&j++&&k++ is flase so only i is increase by and j and
k not effect.
-------------------------------
after that
in ||(OR )OPR
C1||C2
IF C1 IS 0(FALSE) THEN IT CHECK THE C2
m=i++&&j++&&k++(C1)||n++(C2);
THEN C1 IS 0 and c2 is 0++ is 1 so true.
so answer is
1,same,same,0,i,

Is This Answer Correct ?    4 Yes 4 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / saravanan

0,1,2,0

Is This Answer Correct ?    0 Yes 0 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / kishore krishnan.s.r

Its actually a doubt
Since ++ has high precidence than && will it not be evaluated first.
then ans will be 1,2,3,0,1

Is This Answer Correct ?    0 Yes 1 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / musa

1,2,3,1,1

Is This Answer Correct ?    2 Yes 4 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / deepshree sinha

i=1,j=2,k=3,m=0,n=1

Is This Answer Correct ?    7 Yes 11 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / navin jaiswal

1 2 3 1 0

Is This Answer Correct ?    1 Yes 6 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / abc

1 1 2 0 0

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More C Interview Questions

What is register variable in c language?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

1 Answers  


Does c have enums?

0 Answers  


Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.

11 Answers   Microsoft,


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

0 Answers  


what about "char *(*(*a[])())();"

3 Answers   Oracle,


Write a code to determine the total number of stops an elevator would take to serve N number of people.

0 Answers   Expedia,


print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

3 Answers   Winit,


what will happen if you free a pointer twice after allocating memory dynamically ?

3 Answers   Novell,


C program to read the integer and calculate sum and average using single dimensional array

0 Answers  


#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }

15 Answers   Infosys,


How does pointer work in c?

0 Answers  


Categories