Computer Science, asked by vaisakhpv033, 10 months ago

The following function sum() is defined outside and before main(). What is the meaning of using 'extern' before function declaration,for the function sum () ?

extern int sum(int x, int y, int z)
{
return (x + y + z);

}

1.Function is made globally available

2.extern means nothing, sum() is same without extern keyword

3.Function need not to be declared before its use

4.Function is made local to the file



Answers

Answered by Anonymous
1

Answer:

Compiler Dependent

“extern” keyword is used to extend the visibility of function or variable. By default the functions are visible throughout the program, there is no need to declare or define extern functions. ... Variables with “extern” keyword are only declared not defined

Similar questions