Question Set

1. Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?



Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->P and Q need 8 days to complete a work. Q and R need 12 days to complete the same work. But P, Q and R together can finish it in 6 days. How man D. 4 days will be needed if P and R together do it?....
QA->10 men can complete a work in 7 days. But 10 women7 need 14 days to complete the same work. How many days will 5 men and 10 women need to complete the work?....
QA->What is the least number which when divided by 5, 6, 7 and 8 leaves a remainder 3, but when divided by 9 leaves no remainder?....
QA->Father is aged three times more than his son Anil. After 8 years, he would be two and a half times of Anil"s age. After further 8 years, how many times would he be of Anil"s age?....
QA->Father is aged three times more than his son Ram . After 8 years, he would be two and a half times of Ram"s age. After further 8 years, how many times would he be of Ram"s age?....
MCQ->Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?....
MCQ->Which of the following rules are used in choosing the repeating variables in dimensional analysis : 1. Repeating variables should include the dependent variables 2. Repeating variables should contain all primary units used in describing the variables in the problem 3. Repeating variables should combine among themselves. 4. Repeating variables should not contain the dependent variables. Select the correct answer using the codes given below :....
MCQ->What will be the output of the C#.NET code snippet given below? char ch = Convert.ToChar ('a' | 'b' | 'c'); switch (ch) { case 'A': case 'a': Console.WriteLine ("case A | case a"); break; case 'B': case 'b': Console.WriteLine ("case B | case b"); break; case 'C': case 'c': case 'D': case 'd': Console.WriteLine ("case D | case d"); break; }....
MCQ->1 : typedef long a; extern int a c; 2 : typedef long a; extern a int c; 3 : typedef long a; extern a c;....
MCQ->If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.....
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