ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What does extern mean in a function declaration?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What does extern mean in a function declaration?
Answer
# 1
extern is significant only with data declarations. In 
function declarations, it can be used as a stylistic hint 
to indicate that the function's definition is probably in 
another source file, but there is no formal difference 
between 

	extern int f();

and 
	int f();

 
Is This Answer Correct ?    20 Yes 2 No
Swetcha
[Semanticspace]
 
  Re: What does extern mean in a function declaration?
Answer
# 2
extern is a keyword that is prefixed in function 
declaration. It means tht function definition is in source 
file.
for eg.
source file contains int sum(int x,int y) definition part. 
To make use of this function in file by simply declare as 
extern int sum(int ,int); is a good practice.
But to compiler happy extern sum(); is enough.
 
Is This Answer Correct ?    11 Yes 3 No
Poornima
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
how to sort two array of characters and make a new array of characters. Accenture1
Write a C program that reads a series of strings and prints only those ending in "ed"  2
6. Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod() Accenture1
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means.... TCS1
what is use#in c  3
what is compiler  5
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT; TCS5
In scanf h is used for BFL2
what are the general concepts of c and c++  1
which one is highest Priority in c? a)=,b)+,c)++,d)==  3
program to find middle element of linklist? Huawei1
Binary tree traversing Qualcomm1
What is the difference between static and global variables?  1
What is function pointer and where we will use it NetApp1
Write a C program to print 1 2 3 ... 100 without using loops?  5
write a program to print sum of each row of a 2D array.  2
convert 12345 to 54321 withoutusing strig  3
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?  3
What is an volatile variable? HP12
write a program to insert an element at the specified position in the given array in c language IBM2
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com