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 |
size maximum allocated by calloc()
Can you please explain the difference between malloc() and calloc() function?
Is array a primitive data type in c?
What are the basic data types associated with c?
What type of function is main ()?
what is diffrence between string and character array?
out put of printf(ā%dā,printf(ram));
What is self-referential structure in c programming?
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What header files do I need in order to define the standard library functions I use?
What is int main () in c?