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 default width for ouputting a long integer using the insertion operator?
What is the difference between reference and pointer?
What is constructor and destructor in c++?
Who made c++?
Why do we use iterators?
What is a node class in c++?
What is object in c++ wikipedia?
What is a memory leak c++?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is a class template?
Explain function overloading and operator overloading.
What are the extraction and insertion operators in c++?
Explain how an exception handler is defined and invoked in a Program.
What does obj stand for?
If I is an integer variable, which is faster ++i or i++?