Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- void funcion(char *p)
- {
- char v[100];
- int i=0;
- int x;
- while(*p)
- {
- v[i]=*p;
- p++;
- i++;
- }
- x=i;
- for(int j=0; j<=x; j++)
- {
- *p=v[j];
- p--;
- }
- }
- int main()
- {
- char v[10]="udec";
- funcion(v);
- cout<<v;
- system("clear");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement