Asked by Coder
What is answer of the following code: x=7 x-7 x=4 x-4
Answers
Answered by
oobleck
doesn't match any syntax I know.
Is that supposed to be two separate statements?
x = 7x-7
x = 4x-4
???
Not knowing x, it's hard to say what the final value will be.
Is that supposed to be four statements?
x = 7
x-7
x = 4
x-4
If so, the 2nd and 4th don't do anything. Final result: x = 4
Maybe it's two assignments and two display statements. Result:
display 0
display 0
Maybe you can be a bit more specific...
Is that supposed to be two separate statements?
x = 7x-7
x = 4x-4
???
Not knowing x, it's hard to say what the final value will be.
Is that supposed to be four statements?
x = 7
x-7
x = 4
x-4
If so, the 2nd and 4th don't do anything. Final result: x = 4
Maybe it's two assignments and two display statements. Result:
display 0
display 0
Maybe you can be a bit more specific...
Answered by
Coder
Four statements and...
umm the options are:
a)7
b)-7
c)4
d)-4
e)0
umm the options are:
a)7
b)-7
c)4
d)-4
e)0
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.