Question: i wrote this program and im wondering whats the error in it i want it to check the length and the validity of the telephone
000 W ES n.c X *validcheckc.c X validcheckch X 3 #include "validcheckc.h" 4 Fint qlc (char *str[]) { 5 6 if (str !=NULL && str[1]=='\0'){ 7 tele_val (str); 8 printf ("valid argument "); 9 } 10 return 0; 11 L} 12 Fint tele_val (char numb []) { 13 int i=0; 14 int count; 15 char *p=&numb[1]; 16 17 18 while(* (p++) != '\0') { 19 printf ("length is $d ", count); 20 count ++; 21 22 lif (numb[i]='0' && numb[i] #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
