string

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
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?
it just that i need some opinions because i did not fully understand this topic
You don't need opinions. You can see it for yourself in 4 minutes using a test project. It is super simple.
ok....tq for that..
Topic archived. No new replies allowed.