When the design recommends static functions?
Answers were Sorted based on User's Feedback
Answer / manu
The design reccommends static functions when you need to
call the function even when the class is not instantiated.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / aruna kumar samal
When you want to use the function inside the program , not
outside then dsign recomend to do so. This does not have a
this pointer.static function maynot be virtual.there will
not be same version of static and non static function.
| Is This Answer Correct ? | 0 Yes | 3 No |
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
What's c++ used for?
What are friend functions?
What is the main purpose of overloading operators?
Can a program run without main in c++?
Can we sort map in c++?
What is the difference between strcpy() and strncpy()?
Write about the stack unwinding?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What do you mean by C++ access specifiers ?
Differentiate between a template class and class template?
What are the advantages of prototyping?