#include <stdio.h>
main()
{
char *s1, *s2;
printf("Enter string 1 :");
scanf("%s", s1);
printf("Enter String 2 :");
scanf("%s", s2);
printf("%s\n%s", s1, s2);
}
The output of 1st string is right and the output of 2nd string is wrong (i.e. (null))
Can any 1 explain what is going behind?