#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 / santhoshrpai
1,1,2,0,1
| Is This Answer Correct ? | 41 Yes | 10 No |
Post New Answer View All Answers
How do we make a global variable accessible across files? Explain the extern keyword?
How is actual parameter different from the formal parameter?
What is the difference between volatile and const volatile?
How can you find the day of the week given the date?
Why is C language being considered a middle level language?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is the value of h?
What are the parts of c program?
What is the Purpose of 'extern' keyword in a function declaration?
What are 'near' and 'far' pointers?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Why do we use main function?
What is a pointer in c plus plus?
What is the purpose of scanf() and printf() functions?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }