1. Which of the following function is more appropriate for reading in a multi-word string?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    gets(); collects a string of characters terminated by a new line from the standard input stream stdin #include <stdio.h> int main(void) { char string[80]; printf("Enter a string:"); gets(string); printf("The string input was: %s\n", string); return 0; } Output: Enter a string: IndiaBIX The string input was: IndiaBIX
Show Similar Question And Answers
QA->In an examination of mathematics Rajesh obtained more marks than the total marks obtained by Rahim and Sabu. The total marks obtained by Rahim and Saji was more than the Rajesh’s. Rajesh obtained more marks than Saji, Reenu obtained more marks than Rajesh. Who amongst them obtained the....
QA->A word is given in capital letters. It is followed by four words. Out of these four words, three cannot be formed from the letters of the word in capital letters. Point out the word which can be formed from the letters of the given word in capital letters— ARCHITECTURE....
QA->If function inside another function is called a _____ Function....
QA->A statement followed by two assumptions I and II is given. You have to consider the statement to be true even if it seems to be at variance from commonly known facts. You are to decide which of the given assumptions can definitely be drawn from the given statement. Indicate which one of the four given alternatives is correct ? Statement : If more encouragement is given to Sports, Indians will win more gold medals at the Olympic Games. Assumptions : I. Indians do not win gold medals. II. More enc....
QA->A word given in capital letters is followed by four words. Out of these only one cannot be formed by using the letters of the given word. Find out that word— REVOLUTIONARY....
MCQ->Which of the following snippets are the correct way to convert a Single into a String? Single f = 9.8f; String s; s = (String) (f); Single f = 9.8f; String s; s = Convert.ToString(f); Single f = 9.8f; String s; s = f.ToString(); Single f = 9.8f; String s; s = Clnt(f); Single f = 9.8f; String s; s = CString(f);....
MCQ->Which of the following function is more appropriate for reading in a multi-word string?....
MCQ->Which of the following is correct way to convert a String to an int? String s = "123"; int i; i = (int)s; String s = "123"; int i; i = int.Parse(s); String s = "123"; int i; i = Int32.Parse(s); String s = "123"; int i; i = Convert.ToInt32(s); String s = "123"; int i; i = CInt(s);....
MCQ->Consider the following statements about conditions that make a metal semiconductor contact rectifying N type semiconductor with work function φs more than work function φM of metalN type semiconductor with work function φs less than work function φM of metalP type semiconductor with work function φs more than work function φM of metalP type semiconductor with work function φs less than work function φM of metal. Of these statements....
MCQ->Read the following passage carefully and choose the most appropriate answer to the question out of the four alternatives. Translation is of immense importance today. With rapid commercialization, the narrow barriers between nations are fast disappearing. In the past, there used to be practically no communication amongst nations. The modern world, however, is no longer divided into water-tight compartments. We are heading towards one world, thanks to development in the fields of communication among nations today. Translation forges bonds of unity amongst people who speak different languages. Even if we do not know a particular language or the literature of a particular nation, we can know its richness and the depth of its ideas through translation. Translation also helps in understanding the rich cultural heritage of a nation. Thus a multi-lingual person has a multi-focal view of the world. Translation also serves as a mode of cultural excahnge in a multi-lingual country. It plays a pivotal role in the evolution of a pluralistic national identity. The achievement of translation is both the globalisation of culture and the promotion of intra and inter-cultural bonding. One may appreciate and enjoy through translation the plays of Shakespeare even if one does not know the English language. One may also know the rich world of Homer, Virgil, Dante, Milton, Dickens, Hardy, Leo Tolstoy, Zola and Munshi Prem Chand through translation. Translation responds to our intellectual, cultural and spiritual needs. It is necessary for information and for the exchange of ideas. Translation, which has hitherto been neglected and marginalized, has assumed importance with rapid globalization. It is now considered an art which requires mastery and perfection. A good translator is able to do away with superficiality and has a clear understanding of the text to be translated. He should have mastery over the subtle nuances of the language from which he is translating. Translating a passage of one language into another literally is not only impossible but would also result in incorrect grammar and syntax. What should be the primary concern while translating a passage from one language into another?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution