subject
English, 28.06.2021 18:10 Cecely2783

#include #include int main(){ char string_given[100], reverse_string[100] = {'\0'}; int a, set_flag = 1, string_len = 0; printf("\n Enter a string : "); gets(string_given); for (a = 0; string_given[a] != '\0'; a++) { string_len++; } printf("\n The length of the given string '%s' is %d\n", string_given, string_len); for (a = string_len-1; a >= 0 ; a--) { reverse_string[string_len-a-1] = string_given[a]; } for (a = 0; a < string_len ; a++) { if (reverse_string[a] != string_given[a]) set_flag = 0; } if (set_flag == 1) printf ("\n\n The given string '%s' is palindrome", string_given); else printf("\n\n The given string '%s' is not palindrome", string_given); getch(); return(0); } output of this code?

ansver
Answers: 2

Another question on English

question
English, 21.06.2019 18:20
What’s the importance of gaining a general understanding of and interpretation of the work of literature.
Answers: 3
question
English, 21.06.2019 22:30
Laugh and be merry, remember, better the world with a song,    better the world with a blow in the teeth of a wrong.    laugh, for the time is brief, a thread the length of a span.    laugh and be proud to belong to the old proud pageant of man. (laugh and be merry/john masefield/public domain) which of these is the main idea of the poem?
Answers: 1
question
English, 21.06.2019 22:30
Speaking rapidly in a large gymnasium causes your words to run together; making them hard to distinguish. true false
Answers: 2
question
English, 21.06.2019 23:30
Why should college athletes not get paid for playing state the claim a: point a b. direct quotation to support point a c.point b . direct quotation to support point b
Answers: 3
You know the right answer?
#include #include int main(){ char string_given[100], reverse_string[100] = {'\0'}; int a, set_flag...
Questions
question
Mathematics, 22.05.2021 06:00
question
Geography, 22.05.2021 06:00
question
Mathematics, 22.05.2021 06:00
question
Health, 22.05.2021 06:00
question
Mathematics, 22.05.2021 06:00
question
Mathematics, 22.05.2021 06:00
Questions on the website: 13722361