int *p, *q; int n;Which of the following is valid?
float a[10]; float *a_ptr;What do the following statements do? Assume that they are executed in the order given.
a_ptr = a;
a_ptr ++; *a_ptr = 3.5;
a_ptr = a_ptr + 5; *a_ptr = a[1];
How many arguments are in the following command line?
prog -x -a file1 13What is stored in argv[2]?
There are 5 arguments.
argv[2] contains -a
Back to Questions | Back to Main Page for Lecture 7 |