m.kirthika


{ City } coimbatore
< Country > india
* Profession *
User No # 30871
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 13
Questions / { m.kirthika }
Questions Answers Category Views Company eMail




Answers / { m.kirthika }

Question { 16053 }

what is the output of the following program?
#include
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}


Answer

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

Question { 12265 }

Is main() function predfined or userdefined?


Answer

main() is a predefined function because compiler starts
executing only in main() function. It better to press F7
function key after compiling your program because the
control first passes only to main() function

Is This Answer Correct ?    0 Yes 7 No