using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string.
Sample Test:
Enter a string: madam
madam is a palindrome.
Enter a string: 09023
09023 is not a palindrome.
No Answer is Posted For this Question
Be the First to Post Answer
What is difference between main and void main?
What is the maximum no. of arguments that can be given in a command line in C.?
What is the difference between declaring a variable and defining a variable?
How pointer is benefit for design a data structure algorithm?
How does selection sort work in c?
Prove or disprove P!=NP.
What is string length in c?
#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?
Explain what is a static function?
Define Array of pointers.
What is n in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd