use malloc to allocate space for integer array of size 3 code example Example: how to use malloc in c ptr = (cast-type*) malloc(byte-size)