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. biamari
Computer Science & Information Technology
You might also like to view...
Local weather forecasts from local television station websites are generally less accurate than those from major weather websites.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
In the figure above, describe how the figure on the right is formed.
What will be an ideal response?
Computer Science & Information Technology