Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Nov. 25, 2014, 4:59 p.m.
FORMAT:
C++
SIZE:
371 Bytes
Raw
Download
Tweet
HITS:
792
Go to comments
Report
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
void
flip
(
char
*
str
)
{
char
*
p1
=
str
;
char
*
p2
=
str
+
1
;
char
temp
;
while
(
*
p1
&&*
p2
)
{
temp
=*
p1
;
*
p1
=*
p2
;
*
p2
=
temp
;
p2
+=
2
;
p1
+=
2
;
}
}
void
main
()
{
char
str
[]
=
"PenisBurka"
;
flip
(
str
);
printf
(
"%s"
,
str
);
getch
();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus