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 |
List some basic data types in c?
Write a program using bitwise operators to invert even bits of a given number.
What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)
What is a wrapper function in c?
Explain demand paging.
What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 Answers MindFire, TCS, Tech Mahindra,
How can you be sure that a program follows the ANSI C standard?
What is the deal on sprintf_s return value?
What is operator precedence?
What is bubble sort technique in c?