Tutorials, Free Online Tutorials,It Challengers provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, core java, sql, php, c language etc. for beginners and professionals.

Breaking

C Program to Find Length of String Without using Library Function

C Program to Find Length of String Without using Library Function

#include<stdio.h>
 
int main() {
   char str[100];
   int count;
 
   printf("\nEnter the String : ");
   gets(str);
 
   count= 0;  // Initial Length
 
   while (str[count] != '\0')
      count++;
 
   printf("\nLength of the String is : %d", count);
   return(0);
}

No comments:

Post a Comment