What is the use of static functions?

Answer Posted / sanish joseph

If we r using Static functions all the objects will get only
a single copy of dat function,means der wil b only one copy
of dat function.
static functions will contain only static variables.

Is This Answer Correct ?    17 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can constructor be static in c++?

632


What is the extraction operator and what does it do?

602


When do we run a shell in the unix system?

553


What is the difference between global variables and local variable

524


Is sorted c++?

564






How do you generate a random number in c++?

596


If dog is a friend of boy, is boy a friend of dog?

565


What is private inheritance?

588


How did c++ start?

602


Are strings immutable in c++?

643


List different attributes in C++?

637


How many static variables are created if you put one static member into a template class definition?

556


Define namespace in c++?

641


C is to C++ as 1 is to a) What the heck b) 2 c) 10

631


What are c++ stream classes?

549