Question: answer true and false and the reason int main (int arge, char *argv) [ int total_num=atoi(argv[1]); printf(Number of train cars: %d , total_num): train_car whole_train-malloc(sizeof(train_car)total_num):
int main (int arge, char *argv) [ int total_num=atoi(argv[1]); printf("Number of train cars: %d ", total_num): train_car whole_train-malloc(sizeof(train_car)"total_num): 1. The argument of atoi and the first argument of printf are the same type. 2. sizeof(whole_train)-=sizeof(train_car) 3. We can say for certain the return type of the function atoi. 4. The function malloc takes two arguments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
