PrepAway - Latest Free Exam Questions & Answers

What type of error will result from the following statement?

What type of error will result from the following statement?
int main(int argc, char* argv[])
{
char i[7];
strncpy(i, “sdfusdofof”, sizeof(i));
}

PrepAway - Latest Free Exam Questions & Answers

A.
Unbounded string copy

B.
Null-termination

C.
String-termination

D.
String truncation

Explanation:


Leave a Reply