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

Write a program to swap two numbers without using the third variable?

0 Answers  


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

0 Answers   IBM,


Does sprintf put null character?

0 Answers  


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

0 Answers  


give one ip, find out which contry

4 Answers   Google,


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

0 Answers  


how the compiler treats any volatile variable?Explain with example.

1 Answers   Tata Elxsi,


What are macros in C?

2 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


Why c is called top down?

0 Answers  


what is the self-referential structure?

1 Answers  


Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 Answers   TCS,


Categories