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 is the use of clrscr?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
In which layer of the network datastructure format change is done
What is variable declaration and definition in c?
What is void main () in c?
Between macros and functions,which is better to use and why?
What does main () mean in c?
What is switch in c?
How can I find the modification date and time of a file?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
difference between Low, Middle, High Level languages in c ?
What is the importance of c in your views?
What are header files? What are their uses?
How many keywords (reserve words) are in c?