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
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 |
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 |
Explain about C function prototype?
An entire structure variable can be assigned to another structure variable if __________
3 Answers Sasken, TCS, Tech Mahindra, Wipro,
What is queue in c?
what is the use of fflush() function?
What is c preprocessor mean?
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);}
how to copy a string without using c function
Explain what will the preprocessor do for a program?
what is difference between array of characters and string
What extern c means?
being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?
please give me some tips for the selection in TCS.