Question from the Language C - Fundamentals test

Undefined behavior.

Medium

Qualify the following code:

char *p;

p = (char *)malloc (5 * sizeof (char));

strncpy (p, «abcde», 5);

Author: Abha AgrawaStatus: PublishedQuestion passed 215 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!