--- Logu <[EMAIL PROTECTED]> wrote:
> Someone plz explain me this.
> 
> #include<stdio.h>
> #include<string.h>
> int main(void){
>   char *pass="logu";
>   char *s;
>   int i;
> 
>   printf("Enter the passwd: ");
>   scanf("%s",s);
               ^^

Where have you malloc'd? You need to allocate memory
for s.

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
http://in.groups.yahoo.com

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to