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

Computer Science & Information Technology

You might also like to view...

The file extension for an OpenOffice Writer document is ________

A) .doc B) .docx C) .odt D) .rtf

Computer Science & Information Technology

Reduce the fraction to lowest term.

8/64

Computer Science & Information Technology

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

Computer Science & Information Technology

The term ____ means the language of formal logic.

A. graphical scheme B. natural language C. logic scheme D. formal language

Computer Science & Information Technology