Write a program that accepts your first name into a character arraystring variab
ID: 3609257 • Letter: W
Question
Write a program that accepts your first name into a character arraystring variable. Print the name backwards.#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char firstName[8]={'S','h','a','n','n','o','n',''};
cout<<firstName<<" ";
system("pause");
}
i am stuck I can accept the name but I cannot print itbackwards
i know its something simple but i cannot remember what possibly afor loop but something with the array location or address isconfusing me
please help and i will award lifesaver points thx