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
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Add Two Numbers Without Using the Addition Operator
write a program to display all prime numbers
What is union and structure?
Explain the difference between the local variable and global variable in c?
Hai what is the different types of versions and their differences
What is the difference between void main and main in c?
What is scope rule of function in c?
Are enumerations really portable?
What is the purpose of ftell?
What are different types of operators?
What is the main difference between calloc () and malloc ()?
show how link list can be used to repersent the following polynomial i) 5x+2
How do you sort filenames in a directory?
What is the difference between break and continue?