the program i make had stopped working,
it has strcpy,
did i go wrong?
here's my code ....
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
main()
{char *a,*b,*c,*d;
      a="Giovani";b="Loserone+_+";c="Geofff";d="Loserone4RA";
      strcpy(b,a);printf("Using strcpy:value of b, %2s\nUsing strcpy:value of a,%2s\n",b,a);
      strcpy(d,c);printf("Using strcpy:value of d, %2s\nUsing strcpy:value of c,%2s\n",d,c);
      system("pause");}
i just want to know, what the strcpy do in string, but when compile and run its just stopped working, i dont know why,
is something wrong with that code, please tell me what my wrong is?