Declaring function as static
If i declare a function as static what will happen
Re: Declaring function as static
for static functions in C++ go through:
and in C a static function has a name visible in that translation unit only. A
normal function has a name visible across the entire program.
If you were to have two source files with the undermentioned code:
a static function can only be called in the translation unit in which it is defined...
hence a call to a static function from a file where it has not been defined will give a compilation error.
friend why don't you try a bit of googling before u post a question..these kind of information is very very easily available on the net.
|All times are GMT +5.5. The time now is 22:59.|