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 header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
Is oops and c++ same?
Can you please explain the difference between using macro and inline functions?
What are keywords in c++?
What are shallow and deep copy?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
what is C++ exceptional handling?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What happens when you make call 'delete this;'?
What is the use of this pointer in c++?
what are the iterator and generic algorithms.
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What is encapsulation in c++ with example?
Explain the differences between list x; & list x();.
What are the basics of local (auto) objects?