What, if anything, is wrong with the following code fragment?
bool *bp; int x; bp = &x;
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?