what would be the code in C language
Write a program that accepts a string from the user and separates out all the component strings stripping off placeholders from it. Use strtok for this task. Sample Input: Enter a string: I bought %s for %d! Output bought for Hint: Seperator array passed in strtoken function can have multiple delimiters. Show transcribed image text Write a program that accepts a string from the user and separates out all the component strings stripping off placeholders from it. Use strtok for this task. Sample Input: Enter a string: I bought %s for %d! Output bought for Hint: Seperator array passed in strtoken function can have multiple delimiters.
Expert Answer
Answer to Write a program that accepts a string from the user and separates out all the component strings stripping off placeholde…