Go4Expert Founder
22Aug2007,21:48   #31
shabbir's Avatar
what explanation you want for the function.
Go4Expert Member
22Aug2007,21:51   #32
sudheer157's Avatar
Hi
I Want Solutin For Q No 67..
Go4Expert Founder
23Aug2007,08:24   #33
shabbir's Avatar
Quote:
Originally Posted by sudheer157
Hi
I Want Solutin For Q No 67..
Choice is 4
Light Poster
27Aug2007,19:48   #34
indian.21987's Avatar
*question number 1*/

Code:
int z,x=5,y=-10,a=4,b=2;
z = x++ - --y * b / a;What number will z in the sample code above contain?




In this,I think the answer is 10
But It is given that 12 is the ans.
How is it possible?
Please can you explain it?
Thank you.
Go4Expert Founder
27Aug2007,22:02   #35
shabbir's Avatar
Why don't you try and Run it on your compiler and see what is the output.
Go4Expert Member
31Aug2007,23:44   #36
sudheer157's Avatar
Hi can some one please tell me the answers for the following
Q19
Q45
Q64
Q69
Thanks in advance.
Go4Expert Founder
1Sep2007,07:13   #37
shabbir's Avatar
Hi can some one please tell me the answers for the following
Quote:
Originally Posted by sudheer157
Q19
I would go for choice 1 as other are not relevant to the cause of the problem.
Quote:
Originally Posted by sudheer157
Q45
Choice 4 and the choice itself tells the reason
Quote:
Originally Posted by sudheer157
Q64
Choice 2 as the pointer base address is changed by p++
Quote:
Originally Posted by sudheer157
Q69
Choice 1 and the reason lies in the choice option itself.
Go4Expert Member
1Sep2007,23:24   #38
sudheer157's Avatar
THANQ so much...for your reply...i need solutions to few more.i will be very thankful to you and i need solutions for the following
Q72
Q75
Q83
Q96
Q100
please help me out.
Go4Expert Founder
2Sep2007,07:31   #39
shabbir's Avatar
Here they come.
Quote:
Originally Posted by sudheer157
Q72
Choice is 3
Quote:
Originally Posted by sudheer157
Q75
Discussion is there in the comments.
Quote:
Originally Posted by sudheer157
Q83
I would vote for choice 4
Quote:
Originally Posted by sudheer157
Q96
Choice 1 and if you have doubt in such a small question you should refer to some standard C book.
Quote:
Originally Posted by sudheer157
Q100
private is not a C keyword and so I would go for choice 1.
Go4Expert Member
6Sep2007,14:48   #40
sudheer157's Avatar
hi shabbir
ihave doubts in the following questions please help me out.i m attaching those questions in a zip file as they are bmp images.
please give me the solutions either to my mail sudheer157@yahoo.com or in this forum itself.

<<Attachment Removed>>