What are the contents of the numbers array at the end of this code? int numbers[] = { 35, 57, 78, 66, 41, 12 }; int *ptrA = numbers + 3; int x = 15; *ptrA = x++;
Blog
What is the output of the following code? #includeint test(i…
What is the output of the following code? #includeint test(int);int main(int argc, char* argv[]){ int k=35; k = test(k=test(k=test(k))); printf(“k=%d\n”, k); return 0;}int test(int k){ return k++;}
What does it mean to dereference a pointer?
What does it mean to dereference a pointer?
What is the output of this code? #define VALUE 10; int mai…
What is the output of this code? #define VALUE 10; int main( int argc, char* argv[] ) { int x = 3 + VALUE; printf( “%d”, x ); return 0; }
What is the output of the following code? #include int fun(i…
What is the output of the following code? #include int fun(int *num){ return (*num)–;}int main(int argc, char* argv[]){ int num = 16; for(fun(&num); fun(&num); fun(&num)) printf(“%d “, fun(&num)); return 0;}
Which of the following is the correct code to open a file fo…
Which of the following is the correct code to open a file for writing? FILE * fileIn;
What is the correct specifier in fopen() to open a binary fi…
What is the correct specifier in fopen() to open a binary file for reading?
Assume that you have an external CSV file that has this stru…
Assume that you have an external CSV file that has this structure: First-Name,35,Last-Name,5.392 and you want to use fscanf() to parse out the string. What is the format specifier string that will be used to parse this row out?
What is the correct function prototype for the following fun…
What is the correct function prototype for the following function? double doSomething( double x, int y, double z ) { /* code goes here */ }
What are the contents of array after this code? 6 int…
What are the contents of array after this code? 6 int array[ 6 ] = { 10, 20, 30, 40, 50, 60 }; 7 int i; 8 for( i = 0; i < 6; i++ ) 9 { 10 if( i % 2 == 1 ) 11 *( array + i ) = 3; 12 } 13 *array = 100;