How do you determine if a string is a palindrome?



How do you determine if a string is a palindrome?..

Answer / glibwaresoftsolutions

When the order of the characters in a string is reversed and the string remains unchanged, it is called a palindrome.
One way to accomplish this is to first reverse the original string and then determine whether the reversed string is identical to the original string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.

1 Answers  


What is difference between static and global variable in c?

0 Answers  


which is faster execution: loops or recursion?

3 Answers  


What is declaration and definition in c?

0 Answers  


Explain how do you use a pointer to a function?

0 Answers  


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

0 Answers   Wilco,


WAP – represent a char in binary format

4 Answers   Motorola, Wipro,


WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

3 Answers   Infosys, TCS,


how can i calculate mean,median,mode by using c program

1 Answers   HCL,


What does calloc stand for?

0 Answers  


What are derived data types in c?

0 Answers  


What are the advantages and disadvantages of a heap?

0 Answers  


Categories