Question: In c++, Write a function called is valid phone number that takes a phone number as an array of characters and its size, and returns
In c++, Write a function called is valid phone number that takes a phone number as an array of characters and its size, and returns true if the input array is a valid phone number, false otherwise. A phone number is valid only if it is of the following format: (uuu) uuu-uuuu where u is from 0, 1, 2, etc. The parentheses, hypen and the space after ) are necessary. Do not use the string or regex libraries. Will thumbsup vote if it works!!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
