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
what will be the output for the following main() { printf("hi" "hello"); }
Can you apply link and association interchangeably?
What will be your course of action for a push operation?
Is c easier than java?
What are types of preprocessor in c?
How do I get a null pointer in my programs?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
How many parameters should a function have?
What is switch in c?
What is #include conio h?
What are dangling pointers in c?
What is unary operator?
Explain what will the preprocessor do for a program?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
When is a “switch” statement preferable over an “if” statement?