To split a string into tokens in C, the function ________ is used.
- split
- strtok
- substring
- splitstr
The correct answer is strtok. strtok is a standard C function used to split a string into tokens. The other options are not valid C functions for this purpose.
Loading...
Related Quiz
- You're working on an application that processes large datasets. Why might you choose to use pointers to arrays instead of traditional arrays?
- How do you declare a pointer to an integer in C?
- You're writing a program that needs to efficiently calculate the power of 2 for a given exponent. Which operator would be most efficient to use?
- In C++, what happens when two overloaded functions have the same number and types of parameters but differ in return type?
- In C, an array name acts as a ________ pointing to the first element of the array.