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
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How is a null pointer different from a dangling pointer?
Is javascript based on c?
What is break in c?
What language is windows 1.0 written?
Why is it that not all header files are declared in every C program?
What are enums in c?
What are the 4 types of organizational structures?
What is the difference between exit() and _exit() function in c?
What is difference between array and structure in c?
How can you convert integers to binary or hexadecimal?
What is LINKED LIST? How can you access the last element in a linked list?
Explain what is the difference between the expression '++a' and 'a++'?
Is main an identifier in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?