where we used the static functions
-
hello bies I heard lot more about static functions that it access only static variable it count the number of objects created... and so on But still i a am unable to known in which condn it shpild be used can any one give me details with small code would apprecitaed
-
hello bies I heard lot more about static functions that it access only static variable it count the number of objects created... and so on But still i a am unable to known in which condn it shpild be used can any one give me details with small code would apprecitaed
They are used whenever you have multiple instances of an object, but only want one instance of a particular function. Callback functions are another example.
-
They are used whenever you have multiple instances of an object, but only want one instance of a particular function. Callback functions are another example.
Well, Dear DavidCrow u say Callback is the example of Static function callback fuctions r genrally used for repeated works in which we stored the address of the origin and get back after doing some manupulation.. How u relate all these to static functions. pls explain...
-
Well, Dear DavidCrow u say Callback is the example of Static function callback fuctions r genrally used for repeated works in which we stored the address of the origin and get back after doing some manupulation.. How u relate all these to static functions. pls explain...
class A { static int compare( const void *arg1, const void *arg2 ); void SortEm( void ); }; void A::SortEm( void ) { qsort(..., compare); }