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

What is the use of the sizeof operator?

2 Answers  


string reverse using recursion

0 Answers   Mind Tree,


why division operator not work in case of float constant?

2 Answers  


a=5 a=a++/++a

14 Answers   Bhel,


hat is a pointer?

4 Answers   Assurgent,


What does *p++ do?

0 Answers  


What does the c in ctime mean?

0 Answers  


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

0 Answers   TCS,


I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed

4 Answers   Aspire,


Write a program in C to convert date displayed in gregorian to julian date

0 Answers   HCL, Wipro,


What is c value paradox explain?

0 Answers  


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

0 Answers  


Categories