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 |
Explain what are preprocessor directives?
Give the Output : * * * * * * * * * *
Is there a way to compare two structure variables?
C program to perform stack operation using singly linked list
What is sizeof return in c?
How can I use a preprocessorif expression to ?
Explain what does it mean when a pointer is used in an if statement?
How can I recover the file name given an open stream or file descriptor?
What are header files in c programming?
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
C,c++, Java is all are structural oriented or procedure oriented language..?
being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?