#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);
}
Answer Posted / 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 |
Post New Answer View All Answers
What is volatile keyword in c?
Define Spanning-Tree Protocol (STP)
What is 1f in c?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
what is different between auto and local static? why should we use local static?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is the value of h?
What is the difference between volatile and const volatile?
State the difference between realloc and free.
What is the use of pointers in C?
write a program to concatenation the string using switch case?
What is return in c programming?
When should we use pointers in a c program?
Explain what is a const pointer?
What is the size of a union variable?