Write a C++ program to print strings in reverse order.
Answer / Omprakash Varanwal
Here is a simple C++ program that prints a string in reverse order: ```n
#include <iostream>n
#include <string>n
n
int main() {n
std::string str = "Hello, World!";n
for (int i = str.length(); i >= 0; --i) {n
std::cout << str[i];n
}n
return 0;n
}".
| Is This Answer Correct ? | 0 Yes | 0 No |
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
What is a virtual function in C++?
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
How does stack look in function calls? Write a recursive function call, how will the stack look like?
How to invoke a C function using a C++ program?
Define an Abstract class in C++?
What are the advantages/disadvantages of using #define?
Explain why C++ is not purely Object Oriented Language
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
When would you use a pointer? A reference?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
What does malloc return in C and C++?