Write output of following program. #include using namespace std; void repchar(char, int); int main() { repchar(-, 43);
Fantastic news! We've Found the answer you've been seeking!
Question:
Write output of following program.
#include
using namespace std;
void repchar(char, int);
int main()
{
repchar(‘-’, 43);
cout << “Data type Range” << endl; repchar(‘=’, 23);
cout << “char -128 to 127” << endl
<< “short -32,768 to 32,767” << endl
<< “int System dependent” << endl
<< “double -2,147,483,648 to 2,147,483,647” << endl;
repchar(‘-’, 43);
return 0;
}
void repchar(char ch, int n)
{
for(int j=0; jcout<< ch;
cout << endl; }
(Refrance:C++)
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date: