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 chain pointer in c?
Can the size of an array be declared at runtime?
Write a program to check palindrome number in c programming?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is zero based addressing?
Explain data types & how many data types supported by c?
Explain how are 16- and 32-bit numbers stored?
How can you increase the allowable number of simultaneously open files?
How to create struct variables?
What do you mean by scope of a variable in c?
What is the symbol indicated the c-preprocessor?
What are terms in math?
What is bss in c?
Which node is more powerful and can handle local information processing or graphics processing?
program for reversing a selected line word by word when multiple lines are given without using strrev