1.

What does mysql_real_connect() return if it fails?(a) integer(b) float(c) structure(d) NULLThe question was asked in class test.This intriguing question comes from Handling Errors and Processing Command Options topic in portion MySQL Programs Using C of MySQL

Answer»

The correct ANSWER is (d) NULL

The EXPLANATION is: The function ‘mysql_real_connect()’ must COMPLETE SUCCESSFULLY before any other API functions that require a valid MYSQL CONNECTION handler structure can be executed. It returns NULL on failure.



Discussion

No Comment Found

Related InterviewSolutions