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 do you mean by invalid pointer arithmetic?
Explain the red-black trees?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
how many key words availabel in c a) 28 b) 31 c) 32
Differentiate Source Codes from Object Codes
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the scope of an external variable in c?
What should malloc() do?
Is javascript based on c?
What is the use of printf() and scanf() functions?
How do you list files in a directory?
What is new line escape sequence?
how should functions be apportioned among source files?
When would you use a pointer to a function?
Describe explain how arrays can be passed to a user defined function