Question Set

1. 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.



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.01 pm
    True, When a function is declared inside the source file, that function(local function) get a priority than the extern function. So there is no need to declare a function as extern inside the same source file.
Show Similar Question And Answers
QA->A man is facing East, then the turns left and goes 10 m, then turns right and goes 5 m, then goes 5 m to the South and from there 5 m to West. In which direction is he, from his original place ?....
QA->The amount a commercial bank need to maintain in the form of cash, or gold or government approved securities before providing credit to its customers is known as ______?....
QA->If function inside another function is called a _____ Function....
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->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?....
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.....
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->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->On executing the below program what will be the contents of 'target.txt' file if the source file contains a line "To err is human"? #include<stdio.h> int main() { int i, fss; char ch, source[20] = "source.txt", target[20]="target.txt", t; FILE fs, ft; fs = fopen(source, "r"); ft = fopen(target, "w"); while(1) { ch=getc(fs); if(ch==EOF) break; else { fseek(fs, 4L, SEEK_CUR); fputc(ch, ft); } } return 0; }....
MCQ->Is the following statement a declaration or definition? extern int i;....
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