top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Get a string input without using any string or char option in C?

+1 vote
78 views

I mean to say scanf without %c or %s and without gets/getc

posted Aug 1, 2014 by anonymous

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

1 Answer

+2 votes

We can input using the scanset.
Like
char str[20];
scanf("℅[\^n]", str);

answer Aug 1, 2014 by Prakash Singh
Hi Prakash,

Can you please explain what does [\^n] mean
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...