what is the use of static functions, whre it is use,pls give ne detailed infor mation?
static functions
Collapse
X
-
Tags: None
-
Originally posted by sreenadh494what is the use of static functions, whre it is use,pls give ne detailed infor mation?
Try to Google on it.
You will better explanation than me.
If still you find difficult to understand then come here with your specific Problem.
Kind regards,
Dmjpro. -
Originally posted by sreenadh494what is the use of static functions, whre it is use,pls give ne detailed infor mation?
Regards
PS: I think you are preparing for some exams ( by just seeing your questions I think ). I suggest you better search on google. You will get many informative sites discussing these issues. Still doubts, feel free to ask here :)Comment
-
Originally posted by sreenadh494what is the use of static functions, whre it is use,pls give ne detailed infor mation?
in the same translation unit (read: source file after everything has been #included).
For C++: see C, but also a static member function is a function that belongs to
a class, not to a particular instance (object) thereof. The C-ish usage is a bit
obsolete nowadays; the anonymous namespace is used instead.
kind regards,
JosComment
-
Originally posted by sreenadh494what is the use of static functions, whre it is use,pls give ne detailed infor mation?
Static functions are used in singleton pattern and there is a good article in this forum by weaknessforcats .
Other uses are passing function pointers to a system call or function written in c.Comment
Comment