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);
}
Answer Posted / 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 |
Post New Answer View All Answers
What is stack in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Can we access array using pointer in c language?
What is structure in c explain with example?
Can we access the array using a pointer in c language?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is variable and explain rules to declare variable in c?
Where define directive used?
What is variables in c?
How can I call fortran?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is exit() function?
What does a function declared as pascal do differently?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Here is a good puzzle: how do you write a program which produces its own source code as output?