1.

On failure, ‘mysql_query()’ returns _______________(a) 0(b) 1(c) -1(d) a non-zero valueI had been asked this question during an interview.My doubt is from Writing Clients That Include SSL Support in section MySQL Programs Using C of MySQL

Answer» CORRECT OPTION is (d) a non-zero value

Explanation: Both of the FUNCTIONS named ‘mysql_query()’ and ‘mysql_real_query()’ RETURN zero for statements that succeed. They return non zero for failure. A statement is successfully executed if the server accepts it.


Discussion

No Comment Found

Related InterviewSolutions