Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void megfordit(char[]);
- int main (void){
- char tomb[]="Geza kek az eg";
- megfordit(tomb);
- printf("%s",tomb);
- return 0;
- }
- void megfordit(char forras_tomb[]){
- int i,j=0;
- for (i=0;forras_tomb[i]!='\0';i++){
- }
- for (j=0;i!=0;i--,j++){
- forras_tomb[j]=forras_tomb[i];
- }
- forras_tomb[j]='\0';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement