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...

The Office 365 University edition is limited to _________________________ computers.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Give a statistical argument for why FCFS offers a small variance of response times.

What will be an ideal response?

Computer Science & Information Technology

The Linux file system is similar to Windows.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ operators are symbols used in the criteria statement

A) Compound B) Complex C) Comparison D) Logical

Computer Science & Information Technology