✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A string in C is nothing but a one-dimensional character array whose last character is a \0 or null character. The %s conversion specifier is used with scanf() and printf() for getting string input and displaying output. For getting a line of text, the %[^\n] conversion specifier is used with scanf().
char arr[100];scanf("%s", arr); /*compiler automatically appends \0*/printf("%s", arr);Write a program using pointers to check if a given string is a palindrome or not.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!