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
Math,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
English,
9 months ago
World Languages,
1 year ago
Social Sciences,
1 year ago