Quote:
Originally Posted by xpi0t0s
Try this:
Code:
char *str1="Mike";
char *str2=str1;
xtr1[0]^=str[3];
printf("%s\n",str2);
I have tried it in my pc....I modified it a bit....and it is running without error....

my code is...
Code:
#include<stdio.h>
#include<conio.h>

void main()
{
char *str1="Mike";
char *str2=str1;
str1[0]^=str1[4];
printf("%s\n",str2);
getch();
}
Is there anything wrong in my understanding??