write a c program to find the reverse of a given string using pointers with alogritham
Answers
Answered by
0
Answer:
nenemmeme
Explanation:
kwksksksosnnjdksks
Answered by
1
Answer:
Reverse a string using pointers in c
- # include < studio. h >
- int string _ length ( char*);
- void reverse (char*);
- main ( )
- {
- char string [100];
- print f ( " Enter a string / n");
- gets ( string);
- reverse ( string )
- print f (" Reverse of entered string is\ "% s \".n", string );
- return 0;
- }
- void reverse ( char*string)
- {
- int length, c;
- char * begin, *end , temp;
- length = string;
- begin= string;
- for ( c= 0; c < ( length - 1 ) ; c++)
- end ++;
- }
- {
- int string_ length ( char * pointer)
- {
- int c = 0;
- while (* ( pointer + c);=' \0')
- c++;
- return c;
- }
Similar questions