STRING FUNCTION
C supports a wide range of functions that manipulate null-terminated strings- 1.CHECK MOBILE NUMBER IS CORRECT OR NOT: #include<stdio.h> #include<string.h> int main() { char mn[200]; printf("Enter mobile number\n"); gets(mn); if(strlen(mn)==10) printf("Number is correct"); else printf("Incorrect Number"); } •OUTPUT Enter mobile number 9678513240 Mobile number is correct. 2.LOGIN PROGRAMME USING STRING: #include<stdio.h> #include<string.h> int main() { char u[200]="easy@gmail.com",p[200]="ani@789"; char u1[200],p1[200]; printf("Enter username\n"); gets(u1); printf("Enter password\n"); gets(p1); if(strcmp(u,u1)==0&&strcmp(p,p1)==0) printf("Login Successfully"); else printf("Wrong username or password"); } •Output Enter username Easy@gmail.com Enter password Sand@123 Login succe...