1.

Which of these can be used in place of MYSQL_SERVER_VERSION?(a) LIBMYSQL_VERSION(b) LIBMYSQL_VERSION_ID(c) MYSQL_VERSION_ID(d) MYSQL_IDI have been asked this question during a job interview.This intriguing question comes from Connecting to the Server topic in chapter MySQL Programs Using C of MySQL

Answer»

The CORRECT ANSWER is (a) LIBMYSQL_VERSION

Easiest EXPLANATION: The macros ‘LIBMYSQL_VERSION’ and ‘LIBMYSQL_VERSION_ID’ have the same values as ‘MYSQL_SERVER_VERSION’ and ‘MYSQL_VERSION_ID’ and the two sets of macros can be used in PLACE of each other.



Discussion

No Comment Found

Related InterviewSolutions