AnswerBot
1y
A program to reverse a given string.
Create an empty string to store the reversed string
Loop through the original string from the end to the beginning
Add each character to the new string
Return the new ...read more
Anonymous
2y
I have referred the YouTube video of shraddha didi and also solved the programs from her c complete video . It's around 10 hrs but more than sufficient for all IT programming related stuff.
PrepInsta
author
2y
#include using namespace std; int main() { char str[1000], rev[1000]; int i, j, count = 0; cin >> str; while (str[count] != ''){ count++; } j = count - 1; for (i = 0; i < count; i++) { rev[i] = str[j]...read more
Add answer anonymously...
Top Cognizant GenC interview questions & answers
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app