Computer Science Homework Solutions
Problem
#154150

Effect of Code in C

***This is in C***

char Ch;
while ((Ch=getchar()) !=';')
      putchar (Ch);

Will this code:

a. read and write characters until something other than a ; is read.

b. read characters up to and including the 1st semicolon, and write characters up to but not including the 1st semicolon.

c. read and write characters up to but not including the 1st semicolon.

d. skip characters up to the 1st semicolon, then write the next character.

I think the answer is c based on line 2 !=';'

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$3.99)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse