what is a static function
Answers were Sorted based on User's Feedback
Answer / asha
static functions are functions that are only visible to
other functions in the same file.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / radhika
function which is static in class,which cannot be overridden
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / guest
i think i did not do well for this question ,, i need to a
answer from u guys..........
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / harshithadesai
static function cant be overriden.example for ststic
function is main()
without creating object we can access these method
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rathina priya
it is initialized to zero when the first object of
it's class is created
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abhishek verma
1.Static function can access only static data member.
2.Only class name and scop revolution '::'is requered to
call the static fuction.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / r maria ruban raj
Static function directly call with out creating the object.
we can not override the function
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / william
I AGREE THE ASHA ANSWERS.....STATIC FUNCTION IS ONLY FOR
VISIBLE TO OTHER FUNCTION.....
| Is This Answer Correct ? | 1 Yes | 0 No |
what is c++ programming?
What is Your Name :)
write a program to delete an item from a particular location of an linear array?
c program to print a name without using semicolon
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
every function has return the value?
What is n in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }
5 Answers C DAC, CDAC, Infosys, Wipro,
Explain indirection?
Write a program on swapping (100, 50)
Find MAXIMUM of three distinct integers using a single C statement