what is a static function

Answers were Sorted based on User's Feedback



what is a static function..

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

what is a static function..

Answer / radhika

function which is static in class,which cannot be overridden

Is This Answer Correct ?    6 Yes 0 No

what is a static function..

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

what is a static function..

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

what is a static function..

Answer / ravi

static funcn means which called itself and dere is no need
of object to call static funcn..
static fun will use only static variables but not ordinary
variables..

Is This Answer Correct ?    4 Yes 1 No

what is a static function..

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

what is a static function..

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

what is a static function..

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

what is a static function..

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

what is a static function..

Answer / william

I AGREE THE ASHA ANSWERS.....STATIC FUNCTION IS ONLY FOR
VISIBLE TO OTHER FUNCTION.....

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

without using control structures and control structures find the max and min of given 2 nos

1 Answers   HCL,


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


What are the 5 organizational structures?

0 Answers  


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


Is c call by value?

0 Answers  






HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE

3 Answers   Wipro,


Do you know the difference between exit() and _exit() function in c?

0 Answers  


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...

0 Answers  


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


What is operator precedence?

0 Answers  


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

0 Answers  


What is volatile variable in c with example?

0 Answers  


Categories