(Choose 1 answer)
What will be the output of the following program?
#include <stdio.h>
int main(void)
{
int ref[] = {1, 2, 4};
int *ptr;
int index;
for (index = 0, ptr = ref; index < 3; index++, ptr++)printf("%d %d ", ref[index], *ptr);
return 0;
}
A. 124124
B. 142241
C. 144221
D. 112244
Q: 18