length of string


                                    LENGTH OF STRING


#include<stdio.h>

#include<conio.h>

void main()

{       

char s1[10];       int i,a=0;       

clrscr();              

printf("Enter string\n");                     

scanf("%s",s1);           

 for(i=0;s1[i]!='\0';i++)               

     {                         

             a++;               

     }   

 }

No comments:

Post a Comment

If you have any problems related to solutions or any concept please let me know.

Copyright (c) 2020 Custom Programs All Right Reserved

Pages