What Does the below statement mean in C? Static int my_function(int a, int b) { Return a+b; }

All QuestionsCategory: Embedded SystemWhat Does the below statement mean in C? Static int my_function(int a, int b) { Return a+b; }
vaishnavi.talawar asked 3 years ago

a)Error, cannot use static for function
b) it’s just a normal function
c) my_ function can be called only from functions that are declared static
d) Visibility of my_ function is limited to the file it is defined in

1 Answers
Akash answered 2 years ago

a)Error, cannot use static for function