Computer Science, asked by thiyane, 8 months ago

Write a C++ program to find the number of characters in the string.

Answers

Answered by Anonymous
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 ankitgupta82
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