Exam 200-710 All QuestionsBrowse all questions from this exam
Question 26

What function is best suited for extracting data from a formatted string into an array?

    Correct Answer: B

    The correct function for extracting data from a formatted string into an array is 'sscanf'. 'fgetcsv' is used for reading and parsing CSV files into arrays. 'sprintf' is used for formatting and returning a string based on specified format. 'strtok' is used for splitting a string into tokens based on delimiters. 'sscanf' reads data from a string based on format specifiers, making it the best choice for this task.

Discussion
girisssOption: B

Answer is B. sscanf

stefanospetrakis

Agreed!