Some examples
Three things you MUST doCode:char (*fname)[10]; float *hours; scanf("%d",&i); fname = malloc( i * sizeof(*fname) ); hours = malloc( i * sizeof(*hours) );
1. change void main to int main
2. #include <stdlib.h>
3. Make sure your source file is named something like prog.c (and NOT prog.cpp)