Reverse Word

0

0 votes
Problem

Program to reverse a given word(String) using function. 

Example:-

 INDIA should be printed as  AIDNI.

Complete the program to print the string in reverse order using the given function prototype:


Function Prototype:- void reverse(char[], int, int);


 

Input should be a String or word.


Output Statement:- printf("The string after reversing is: %s\n", str1); 

 

Time Limit: 10
Memory Limit: 256
Source Limit:
Editor Image

?