Multiple choice Which of the following represents correct declaration of sprintf function in C? Int sprintf ( char * str, const char * format) Void sprintf ( char * str, const char * format, ...) Int sprintf ( int, const char * format, ... ) Int sprintf ( char * str, const char * format, ... ) Reveal answer Fill a bubble to check yourself D Correct answer Explanation This is the correct answer as it returns integer which represents the number of characters successfully written on string (first argument). Also the three dots at the end represents that it can have variable number of arguments which is required.