What will be displayed by the statements below?
``` char s1[8] = "petunia", s2[9] = "marigold";
char tmp1[10], tmp2[20];
strcpy(tmp2, s1);
strcat(tmp2, s2);
strncpy(tmp1, &tmp2[5], 6);
tmp1[6] = '\0';
printf("b%s\n", tmp1);
```
a. iamari
b. biamari
c. oldpet
d. boldpet
e. none of the above
B
You might also like to view...
The file extension for an OpenOffice Writer document is ________
A) .doc B) .docx C) .odt D) .rtf
Reduce the fraction to lowest term.
8/64
What is a baseline?
A. Recommended actions that are more flexible than standards B. All the detailed actions that personnel are required to follow C. Mandatory actions that describe how policies will be implemented within an organization D. A reference point defined and captured to be used as a future reference
The term ____ means the language of formal logic.
A. graphical scheme B. natural language C. logic scheme D. formal language