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 |
What are preprocessor directives in c?
What is sizeof int?
Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered
What are the 5 elements of structure?
There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?
what is the difference between. system call and library function?
What are volatile variables?
What is sizeof array in c?
What are preprocessor directives?
write a C and C++ programme to implement the A,bubble sort B,quick sort C,insertion sort D,sequential search E,binary search
Can a variable be both constant and volatile?
Can a function argument have default value?