what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}
Answers were Sorted based on User's Feedback
given z=x-- -y
therefore x--=4-1=3;
and given y=3;
so z =3-3=0;
but x doesn't change its value.
so the correct answer is 430
| Is This Answer Correct ? | 0 Yes | 6 No |
Answer / sudarshan
4 3 -1 this will be the output of this program
| Is This Answer Correct ? | 0 Yes | 17 No |
How can I generate floating-point random numbers?
what are the compilation steps? ( i want inside the compiler )
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
How can I read data from data files with particular formats?
How does pointer work in c?
number of times a digit is present in a number
Explain the red-black trees?
Suggesting that there can be 62 seconds in a minute?
Can we add pointers together?
What are Macros? What are its advantages and disadvantages?
Can you write a programmer for FACTORIAL using recursion?