QN.1
Write a C program with a function that reverses a string to spell backwards, e.g. the phrase “world of geeks” should
become “skeeg fo dlorw”
Use assignment31.c for your program name, and reverseStr() for the function name
Use for running your program the following sets of strings: “computer methods one”, “year one semester two”
and “bill gates is not a genius!”
Answers
Answered by
2
int main() { char s[100];
printf("Enter a string to reverse\n"); gets(s);
strrev(s);
printf("Reverse of the string: %s\n", s);
return 0; }
use it into function and mark me brainlist
Similar questions