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 does printf does?
Can you define which header file to include at compile time?
What are the valid places to have keyword “break”?
What does s c mean on snapchat?
how should functions be apportioned among source files?
Explain how can I prevent another program from modifying part of a file that I am modifying?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
write an algorithm to display a square matrix.
What are conditional operators in C?
What is an operator?
What are register variables in c?
What is the difference between class and object in c?
How can you convert integers to binary or hexadecimal?
Differentiate fundamental data types and derived data types in C.
using only #include