#include <stdio.h>
int main()
{
char *a,*b;
scanf("%s %s",a,b);
printf("%s %s",a,b);
return 0;
}
It works like this,
#include <stdio.h>
int main(){
char *a;
scanf("%s",a);
printf("%s",a);
return 0;
}
I think its something with memory becoz when i use malloc and assign some memory it works.