Monday, May 24, 2010

Which of the following string declarations contains an error?

a. char String1[3] = "xyz";


b. char String2[5] = "abcd";


c. char String4[ ] = "world"

Which of the following string declarations contains an error?
char String1[3]="xyz" is wrong. The correct declaration is char String1[4]="xyz"





Nelson Bittencourt


See my site:


http://www1.webng.com/nbittencourt/index...


No comments:

Post a Comment