What is static function in c?



What is static function in c?..

Answer / Avinash Pandey

A static function in C is a function that has internal linkage, meaning it can only be called from the same file where it is defined. Unlike regular functions, it retains its value between function calls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the use of #define preprocessor in c?

1 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1 Answers   Accenture,


main() { int l=6; switch(l) { default:l=l+2; case 4:l=4; case 5:l++; break; } printf("%d",l); }

1 Answers  


What is meant by recursion?

1 Answers   ADP,


What is methods in c?

1 Answers  


Why isnt any of this standardized in c?

1 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  


What are multidimensional arrays?

1 Answers  


What is difference between class and structure?

1 Answers  


Explain can static variables be declared in a header file?

1 Answers  


what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.

6 Answers   HCL,


Where local variables are stored in c?

1 Answers  


Categories