write program for palindrome
Answer Posted / aishwarya
/*using pointers*/
main()
{
char str[]="MalyalaM";
char *s;
s=str+8;
while(s>=str)
{
printf("%c",*s);
s--;
}
}
| Is This Answer Correct ? | 10 Yes | 18 No |
Post New Answer View All Answers
What is the difference between public, private, and protected access?
what is c++
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
Write about the stack unwinding?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
How do you define a class in c++?
Can we inherit constructor in c++?
How much do c++ programmers make?
What is & in c++ function?
What is the purpose of the "delete" operator?
What are libraries in c++?
Can I learn c++ without learning c?
What is using namespace std in c++?
Why is standard template library used?
Explain rtti.