try with "&",,,reference not given in scanf...&key

 Its not how you fall, but how you pick yourself up again.. 
Regards
Dinesh.N
 




________________________________
From: mahesh kumar <[email protected]>
To: [email protected]
Sent: Friday, August 28, 2009 2:20:26 PM
Subject: [twincling] c statement

hi  
im working on linux open suse platform

while working with c statement i got a problem

scanf("%s",key);

error: segmentation fault ( at running time)

here key is a character array declared earlier

plz  plz help me out of this bug

regards 
mahesh  a linux aspirant



      

Reply via email to