Question Set

1. Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();





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
    extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file. int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.
Show Similar Question And Answers
QA->A temperature difference of 25°C is equivalent to a temperature difference of how many F?....
QA->A temperature difference of 25°C is equivalent to a temperature difference of howmany F?....
QA->“One caste, One religion and One God for man of the same blood and form, there is no difference animals of the same caste alone procreate Viewed thus all humanity belong to one caste”- In which book of Sree Narayana Guru these words can be seen?....
QA->The savings of an employee is 1/5th of his salary.when he changes his savings to 1/6th of the salary,there is a difference of Rs.His salary is:....
QA->In order to promote growth and investment, a new provision has been inserted in the Income-tax Act with effect from FY 2019-20 which allows any domestic company an option to pay income-tax at the rate of __ per cent subject to condition that they will not avail any exemption/incentive.?....
MCQ->What will be the output of the program? #include<stdio.h> int fun(int, int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { printf("%d\n", proc(fun, 6, 6)); return 0; } int fun(int a, int b) { return (a==b); } int proc(pf p, int a, int b) { return ((p)(a, b)); }....
MCQ->What will be the output of the program? #include<stdio.h> void fun(int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { int a=3; fun(a); return 0; } void fun(int n) { if(n > 0) { fun(--n); printf("%d,", n); fun(--n); } }....
MCQ->Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();....
MCQ->What will be the output of the program? #include<stdio.h> int fun(int i) { i++; return i; } int main() { int fun(int); int i=3; fun(i=fun(fun(i))); printf("%d\n", i); return 0; }....
MCQ->Is there any difference int the following declarations? int fun(int arr[]); int fun(int arr[2]);....
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