What is the difference between GETS();AND SCANF();
Answer Posted / rejith vr
We can use scanf() instead of gets()
Syntax : gets(str);
||
||
scanf("%[^
]s",str);
it will accept multiple words in a string
Is This Answer Correct ? | 5 Yes | 23 No |
Post New Answer View All Answers
Are bit fields portable?
What is meant by gets in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is indirection? How many levels of pointers can you have?
How can I invoke another program or command and trap its output?
What kind of structure is a house?
What is New modifiers?
Why do we use c for the speed of light?
How many identifiers are there in c?
If you know then define #pragma?
How to establish connection with oracle database software from c language?
How can I generate floating-point random numbers?
What is header file definition?
Why is c faster?
What are structure members?