string

Nov 28, 2011 at 2:07pm
when the cin function is scanning a string, if there is more input data (with no blanks) than will fit in the array output argument, cin.............. (choose one)

a) copies in only the characters that will fit and ignores the rest.
b) copies in the whole string overflowing the output argument because scan has no way of knowing the array's declared size
c) scans all the characters but stores only the ones that fit, discarding the rest
Nov 28, 2011 at 2:15pm
Is there a reason you didn't try it and find out yourself? Maybe you are solving a quiz right now and need the answer pronto?
Nov 28, 2011 at 2:20pm
it just that i need some opinions because i did not fully understand this topic
Nov 28, 2011 at 2:26pm
You don't need opinions. You can see it for yourself in 4 minutes using a test project. It is super simple.
Dec 5, 2011 at 3:58pm
ok....tq for that..
Topic archived. No new replies allowed.