EC-Council
312-92 · Question #11
What type of error will result from the following statement? int main(int argc, char* argv[]) { char i[7]; strncpy(i, "sdfusdofof", sizeof(i)); }
Sign in or unlock 312-92 to reveal the answer and full explanation for question #11. The question stem and answer options stay visible for context.
Question
What type of error will result from the following statement? int main(int argc, char* argv[]) { char i[7]; strncpy(i, "sdfusdofof", sizeof(i)); }
Options
- AUnbounded string copy
- BNull-termination
- CString-termination
- DString truncation
Unlock 312-92 to see the answer
You've previewed enough free 312-92 questions. Unlock 312-92 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.