Write a C++ program to find the number of characters in the string.
Answers
Answered by
1
Answer:
The program output is shown below.
#include<iostream>
#include<string.h>
char str[50];
int len;
cout << "Enter an array or string : ";
gets(str);
len = strlen(str);
cout << "Length of the string is : " << len;
Answered by
10
Explanation:
The program output is shown below.
#include<iostream>
#include<string.h>
char str[50];
int len;
cout << "Enter an array or string : ";
gets(str);
len = strlen(str);
cout << "Length of the string is : " << len;
MARK AS BRAINLIST
Similar questions
India Languages,
4 months ago
English,
4 months ago
Science,
4 months ago
English,
8 months ago
World Languages,
11 months ago
Social Sciences,
11 months ago