Chapter 21: Problem 37
Write a program that inputs a telephone number as a string in the form (555) \(555-5555 .\) The program should use function strtok to extract the area code as a token, the first three digits of the phone number as a token, and the last four digits of the phone number as a token. The seven digits of the phone number should be concatenated into one string. Both the area code and the phone number should be printed.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.