Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  chk
Language: C/C++
Code:
#include <stdio.h>

int main(void) {
char str[100],temp;
int i,j=0;
printf("Enter String ");
gets(str);
while(i<j){
temp=str[i];
str[i]=str[j];
str[j]=temp;
i++;
j--;

}
printf("%s",str);
return (0);
}
 
          
Comments: