What is wrong with the following code fragment?
char str1[10]="Mark", str2[15]="What's my name";
strcpy(str1,str2);
a. Nothing
b. str2 has white space in it
c. str1 does not have enough room
d. str2 does not have enough room
c. str1 does not have enough room
Computer Science & Information Technology
You might also like to view...
The correlation name is also known as a(n) ___________.
a. alias b. alternative c. substitute d. pseudo name
Computer Science & Information Technology
Show two equivalent ways to set the count member in the ListNode variable to which head points.
1. Given the structure definition: ``` const int STRING_SIZE = 20; struct ListNode { char item[STRING_SIZE]; int count; ListNode * link; }; ListNode *head = new ListNode; ```
Computer Science & Information Technology