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;
}

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;
}

A.
16 bytes

B.
28 bytes

C.
32 bytes

D.
8 bytes

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *