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 |
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
How many types of sorting are there in c?
Can you add pointers together? Why would you?
A program to write a number of letters and numbers, such as counting and display
4. main() { int c=- -2; printf("c=%d",c); }
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????
a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'
Write the syntax and purpose of a switch statement in C.
What is #include cctype?
Does * p ++ increment p or what it points to?
why we use "include" word before calling the header file. is there any special name for that include??????