What is output of the following program ?
main()
{
i = 1;
printf("%d %d %d\n",i,i++,i++);
}
Answer Posted / j jhawahar
1,1,2
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why use int main instead of void main?
Does c have function or method?
What is nested structure with example?
Is c call by value?
Explain built-in function?
How would you obtain the current time and difference between two times?
What is void c?
difference between native and cross compilers
Is null always defined as 0(zero)?
What is header file in c?
What is binary tree in c?
How can I remove the leading spaces from a string?
what is the syallabus of computer science students in group- 1?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
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.