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 |
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is the purpose of sprintf() function?
What Is The Difference Between Null And Void Pointer?
wap in c to accept a number display the total count of digit
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
What are the types of functions in c?
What is actual argument?
The differences between Windows XP and Windows Visa
What does char * * argv mean in c?
please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC
What is meant by keywords in c?
What is a good way to implement complex numbers in c?