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 |
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
What is an operator?
What is the benefit of using const for declaring constants?
what is the return type of printf
I have seen function declarations that look like this
What are pragmas and what are they good for?
how we do lcm of two no using c simple if while or for statement
how to find the size of the data type like int,float without using the sizeof operator?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 5 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Explain can you assign a different address to an array tag?
Why isnt any of this standardized in c?