ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

How many of the following use NULL to indicate failure?
mysql_init(), mysql_real_connect()

Answer & Solution
Correct Answer: Option C
This question asks you to identify how many MySQL functions use NULL to signify an unsuccessful operation.
Let's break down the given functions:
mysql_init() initializes a MySQL connection. It returns NULL if there is an error in initialization.
mysql_real_connect() establishes a connection to a MySQL server. It also returns NULL if the connection fails.
Therefore, both functions utilize NULL to indicate failure.
Hence, the correct answer is Option C: 2
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.