top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to scan a string till we hit a new line using scanf()?

+9 votes
846 views
How to scan a string till we hit a new line using scanf()?
posted Nov 18, 2013 by Mona Sharma

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
scanf("%[^\n]", address); 
answer Nov 18, 2013 by Vikas Upadhyay
...