Write a function named emptyString which has no arguments no

Write a function named emptyString, which has no arguments (no input), and always return the empty string?

Langauge is c++

Solution

EmptyStr.cpp

#include <iostream>
#include <string>
using namespace std;

string emptyString();
double power(double a, int n);
int main()
{
string s = emptyString();
cout<<\"Empty String: \"<<s<<endl;
return 0;
}
string emptyString(){
return \"\";
}

Output:

Empty String:

Write a function named emptyString, which has no arguments (no input), and always return the empty string? Langauge is c++SolutionEmptyStr.cpp #include <iost

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site