top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
532 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
...