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:
