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);
}
Answer Posted / poorna
Ans:3 3 1
bcoz
z=4-- -3; z=4-3;
z=1;
and x=3
there fore answer is 3 3 1
| Is This Answer Correct ? | 42 Yes | 5 No |
Post New Answer View All Answers
how to construct a simulator keeping the logical boolean gates in c
Explain the use of fflush() function?
#include
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Can you pass an entire structure to functions?
Explain indirection?
What is the difference between declaring a variable and defining a variable?
Explain about the constants which help in debugging?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What are the complete rules for header file searching?
When is a void pointer used?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain what are the different file extensions involved when programming in c?
code for replace tabs with equivalent number of blanks
What is meant by preprocessor in c?