![]() Related Questions F = fopen( filename, "r" );if(????){fprintf(stderr, "Could not open file!");exit(-1);}What should replace the ???? in the code above to determine if the file could not be opened?A. f == NULLB. f == EOFC. f != 0;D. f == -1 #include What is the output of the following code?char str[20] = "ENIGMA";char *p, *q, *r;q=p++;r=p+3 - (p-q);printf("%3s%5s", (++p)+3, r);A. ENIGMAB. GMAC. No outputD. Error. #include What is the correct way to define a constant pointer?A. const char *name_ptr = "TEST";B. char *const name_ptr = "TEST";C. Both A and BD. None of Above. Tags : Pointer Difference between %TYPE and %ROWTYPEA. %ROWTYPE used to declare the field and %TYPE used to declare Difference between %TYPE and %ROWTYPEA. %ROWTYPE used to declare the field and %TYPE used to declare the recordB. %ROWTYPE used to declare the record and %TYPE used to declare the fieldC. BOTH ARE SAMED. %ROWTYPE gives an error. Select 'oracle' from dual where null = null;A. oracleB. nullC. error outD. no rows selected What is the difference between the two declarations?#include How can I print a "%" character in a in between the string foo and the value held in the variable foo using printf format string?A. fprintf("foo " "%" "%dn", foo);B. fprintf("foo '%' %dn", foo);C. fprintf("foo % %dn", foo);D. fprintf("foo " "%dn", foo); #include #define FIRST_PART 7#define LAST_PART 5#define ALL_PARTS FIRST_PART + LAST_PARTint main() {printf ("The Square root of all parts is %dn , ALL_PARTS * ALL_PARTS) ;return(0);} A. 35B. 144C. Latest Answer : @ mef526 - You have added the brackets yourself. Those brackets make a huge difference. the answer is 47. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||