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 data encapsulation is in c++?
Can a constructor return a value?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Describe protected access specifiers?
What do you mean by volatile and mutable keywords used in c++?
We use library functions in the program, in what form they are provided to the program?
Is string an object in c++?
What is a singleton c++?
How can I learn c++ easily?
Difference between delete and free.
How would you call C functions from C++ and vice versa?
Does dev c++ support c++ 11?
What is meant by the term name mangling in c++?
What are the stages in the development cycle?
How the programmer of a class should decide whether to declare member function or a friend function?