#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();
}