what does keyword ‘extern’ mean in a function declaration?



what does keyword ‘extern’ mean in a function declaration?..

Answer / vadivel t

Extern int a; -> means that, a int variable called 'a;
defined in any of the source file in the project and can be
accessed here in the file using extern declaration.

Is This Answer Correct ?    19 Yes 0 No

Post New Answer

More C Interview Questions

write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720

1 Answers   HCL,


What is the best style for code layout in c?

0 Answers  


How can you increase the size of a dynamically allocated array?

0 Answers   TISL,


How can a number be converted to a string?

1 Answers  


What is a pointer?

1 Answers   ADP, IFFCO,


how many header file is in C language ?

44 Answers   College School Exams Tests, CTS, IBM, IMS, Infosys, ME, Sign Solutions, Wipro, XVT,


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


wtite a program that will multiply two integers in recursion function

4 Answers   TCS,


Where can I get an ansi-compatible lint?

0 Answers  


How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran

0 Answers  


Categories