Question: please explain why Problem 1. True/False (20 points) You are given a code fragment below. You can assume the code fragment is from working code.
Problem 1. True/False (20 points) You are given a code fragment below. You can assume the code fragment is from working code. An Code Fragment 1 (train car is a struct); int main (int arge, char *argy) int total num-atolargv[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
