C++ Program to Find Length of a String

How to write a Program to find length of a string in C++ Programming ?


C++ Program to Find the Length of a String C++ Program to find string length c++ - calculate length of a string without using standard  String length - C, C++ and Java programming tutorials C Program to Find Length of String Without using Library ... program to find the length of the string manually - C / C++ C++ Programming Program to Calculate Length of a String Program to Calculate Length of a String c++ program to find length of string without using strlen function c++ program to find length of string using pointers program to find length of string in 8086 program to find length of string in java without using length method program to find length of string without using library function in c# how to calculate length of string in c++
C++ Program to Find Length of a String


Solution:
//Program to find length of a string.
#include<conio.h>
#include<iostream.h>
#include<stdio.h>

void main()
{
clrscr();
char a[80];
cout<<"Enter a string: ";
gets(a);
for(int i=0;a[i]!='\0';i++);
cout<<"The length of the string is: "<<i;
getch();
}

This C++ Program to Find Length of a String.


Learn More :