Thursday, July 9, 2009

What's the problem with function with static return type in c language?

i coudnot find the any difference with function with return type as int and static int ?what is the effect of the static on function return type.








thank you..

What's the problem with function with static return type in c language?
static in front of a function definition means that the function's scope is limited to the compilation unit which contains it. In other words, it's a local function, not a global one.
Reply:Function return type can't be static. The static modifier before the function prototype refers to the static function. It has nothing with the return type..


No comments:

Post a Comment