Question: Hello guys i wrote this program and i was wondering whats wrong in this program because when i enter a valid number lets say 1234567890

Hello guys i wrote this program and i was wondering whats wrong in this program because when i enter a valid number lets say 1234567890 it just prints the length of it and thats it it doesnt check if its valid or not it doesnt go the if statement why is that and how can i fix it
Hello guys i wrote this program and i was wondering whats wrong
in this program because when i enter a valid number lets say

#include #include "televal.h" int count=0; Qint tele_val (char numb []) { int i=0; char *ptr: ptr=numb; while(*(ptr++) !='\0') { count++; -) printf ("length of string $d ", count); if (count>10) { printf ("not valid "); Eelse if (count='0' && numb[i] #include #include "televal.h" int main(int argc, char *argv[]) EL printf("the string is s ", argv[1]); tele_val(argv[1]); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!