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
Define basic type of variable used for a different condition in C++?
What is a c++ object?
What is the difference between interpreters and compilers?
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
How do you initialize a string in c++?
What is the difference between containment and delegation?
What do you mean by overhead in c++?
Differentiate between an array and a list?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What is a base class?
What is the role of copy constructor in copying of thrown objects?
Are there any special rules about inlining?
What is an iterator class in c++?
What is virtual table?
How does c++ sort work?