Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. void megfordit(char[]);
  3. int main (void){
  4.     char tomb[]="Geza kek az eg";
  5.     megfordit(tomb);
  6.     printf("%s",tomb);
  7.     return 0;
  8. }
  9. void megfordit(char forras_tomb[]){
  10.     int i,j=0;
  11.     for (i=0;forras_tomb[i]!='\0';i++){
  12.     }
  13.     for (j=0;i!=0;i--,j++){
  14.         forras_tomb[j]=forras_tomb[i];
  15.     }
  16.     forras_tomb[j]='\0';
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement