Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is a static function

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


Please Help Members By Posting Answers For Below Questions

What do you mean by invalid pointer arithmetic?

1079


Explain the red-black trees?

1131


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

1035


how many key words availabel in c a) 28 b) 31 c) 32

1080


Differentiate Source Codes from Object Codes

1580


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1304


What is the scope of an external variable in c?

1050


What should malloc() do?

1172


Is javascript based on c?

1065


What is the use of printf() and scanf() functions?

1134


How do you list files in a directory?

1146


What is new line escape sequence?

1355


how should functions be apportioned among source files?

1103


When would you use a pointer to a function?

1047


Describe explain how arrays can be passed to a user defined function

1105