part b of this question...
Attachments:
Answers
Answered by
1
[0010001111]... Hello User... [1001010101]
Here's your answer...
I know you've asked for the second part, but I'll answer the first part too. To explain.
In the first question, ch's value increments before it prints. So ch = 31
Then it prints ch again, so output:
31
31
Now for the second part.
If ++ch is replaced by ch+1, for that statement, the output will remain 31. However, the value of ch will not change, as no increment operator has been used.
So in the second statement, ch will remain 30
Output:
31
30
[0110100101]... More questions detected... [010110011110]
//Bot UnknownDude is moving on to more queries
//This is your friendly neighbourhood UnknownDude
Here's your answer...
I know you've asked for the second part, but I'll answer the first part too. To explain.
In the first question, ch's value increments before it prints. So ch = 31
Then it prints ch again, so output:
31
31
Now for the second part.
If ++ch is replaced by ch+1, for that statement, the output will remain 31. However, the value of ch will not change, as no increment operator has been used.
So in the second statement, ch will remain 30
Output:
31
30
[0110100101]... More questions detected... [010110011110]
//Bot UnknownDude is moving on to more queries
//This is your friendly neighbourhood UnknownDude
Similar questions