yaswanthraj


{ City }
< Country > india
* Profession *
User No # 43135
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 # 27
Users Marked my Answers as Wrong # 4
Questions / { yaswanthraj }
Questions Answers Category Views Company eMail




Answers / { yaswanthraj }

Question { HCL, 35508 }

WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("%d%d%d",x,y,z);
}


Answer

Absolutely.. 3 3 1

No doubt in it.....all frnds who said it are right and their
explaination is also correct......

while Z is calculated X is 4...since it is post decrement....

Is This Answer Correct ?    12 Yes 3 No

Question { 12582 }

how many coins do i have in my pocket


Answer

Variable! :-)

Is This Answer Correct ?    15 Yes 1 No