WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("%d%d%d",x,y,z);
}
Answers were Sorted based on User's Feedback
Answer / jasmeet singh
when assigning value to z, x is used with a "post"
decrement. so the original value for the x i.e. 4 is taken
for the calculation and then the decrement is done.
so answer is
4,3,1
| Is This Answer Correct ? | 3 Yes | 15 No |
Answer / sandhya
the answer is
4 3 1
because
we have already asigned vale to x&y in begning so directly it will print 4 for x & 3 for y it becomes 3-2=1
| Is This Answer Correct ? | 3 Yes | 29 No |
difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
main() { char c; for(c='A';c<='Z';c++) getch(); }
Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL
how to convert decimal to hexadecimal without using arrays just loops
what is run time error?
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
wap for bubble sort
Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.