i hope u all fine...
i dont have any idea about this code...hope some1 can explain to me why this code give the output in backwards...
its that i need a mirror to invert it. :rolleyes:
#include<iostream>
Using name space std;
void print_backwards();
int main()
{
print_backwards();
cout << “\n”;
return 0;
}
void print_backwards()
{
char character;
cout << “Enter a character (‘.’ to end program): “;
cin >> character;
if (character != ‘.’)
{
print_backwards();
cout << character;
}
}


Sign In
Create Account


Back to top









