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

What function is best suited for extracting data from a formatted string into an array?
A . fgetcsv
B . sscanf
C . sprintf
D . strtok

Answer: C

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
sasho metallico
sasho metallico
4 years ago

The answer is wrong. I believe it should be “B”. “A” is also an option but i believe it is not the “best suited” one because it is specific for specific for csv strings.