Which of the following define an array A of 10 pointers to integers?
The parameters in the main part of a program often take one of the two following forms.
Version 1: int main( int argc, char **argv ) Version 2: int main( int argc, char *argv[] )
What is the difference between the two?
Consider the following declarations.
int (*f)(int); int *g(int);
Which of the following correctly characterizes f and g?
Consider the following code fragment.
int A[100], *p, *q; for( p = A, q = p + 99; p < A+100; p++, q-- ) swap( p, q );
Execution of this code fragment has what effect on the array A?
char *str1 = "word"; char *str2; str2 = str1;
Which of the following correctly characterizes the effect of executing this fragment?
What, if anything, is wrong with the following code fragment?
Thing *ptr = new Thing; ptr = NULL;