PrepAway - Latest Free Exam Questions & Answers

what size block will be used to hold name string?

When the following code is compiled and run is a program what size block will be used to hold
name string?
#include <stdio.h>
int main(int argc, char **argv)
{
char target[5]=”TTTT”;
char attacker[11]=”AAAAAAAAAA”;
strcpy(attacker, ” DDDDDDDDDDDDDD”);
printf(“% \n”, target);
return 0;
}

PrepAway - Latest Free Exam Questions & Answers

A.
16 bytes

B.
28 bytes

C.
32 bytes

D.
8 bytes

Explanation:


Leave a Reply