Answer Posted / abdur rab
Static functions in C
======================
If API's are developed using C and there are few functions
which the user of the API need not know about them, make
that function as static. The static function in C is
visible only inside the file where in it is declared and
defined.
Static functions in C++
========================
Unlike other member function, a static function is always
stuck with its class rather than the instance. The other
memeber functions are stuck with their objects.
A static function can be accessed without creating an
instance, since it is available with the class itself.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of main( ) in c language?
How do you define structure?
What are the advantages of using Unions?
what do you mean by enumeration constant?
What do you mean by c what are the main characteristics of c language?
What is the purpose of ftell?
What is union and structure?
What is %g in c?
Why pointers are used in c?
What is getche() function?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is the difference between malloc calloc and realloc in c?
What does struct node * mean?
Which one would you prefer - a macro or a function?
What is strcpy() function?