|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
C++
DETAILS
Question: Describe the main characteristics of static functions.
Answer: The main characteristics of static functions include, Ø It is without the a this pointer, Ø It can't directly access the non-static members of its class Ø It can't be declared const, volatile or virtual. Ø It doesn't need to be invoked through an object of its class, although for convenience, it may.
|
|
|
Category |
C++ Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7300 users |
Added on |
7/16/2015 |
Views |
66422 |
Rate it! |
|
|
Question:
Describe the main characteristics of static functions.
Answer:
The main characteristics of static functions include, Ø It is without the a this pointer, Ø It can't directly access the non-static members of its class Ø It can't be declared const, volatile or virtual. Ø It doesn't need to be invoked through an object of its class, although for convenience, it may. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Will the inline function be compiled as the inline function always? Justify.
|
View Answer
|
|
Define a way other than using the keyword inline to make a function inline.
|
View Answer
|
|
How can a '::' operator be used as unary operator?
|
View Answer
|
|
What are the main underlying concepts of object orientation?
|
View Answer
|
|
What do u meant by "SBI" of an object?
|
- C++ Interview Questions & Answers">
View Answer
|
|
Differentiate persistent & non-persistent objects?
|
View Answer
|
|
What do you meant by active and passive objects
|
View Answer
|
|
What is meant by software development method?
|
View Answer
|
|
Why does the function arguments are called as "signatures"?
|
View Answer
|
|
What is Memory alignment??
|
View Answer
|
|
When are temporary variables created by C++ compiler?
|
View Answer
|
|
When do use "const" reference arguments in function?
|
- C++ Interview Questions & Answers">
View Answer
|
|
What are storage qualifiers in C++ ?
|
View Answer
|
|
What are C++ storage classes?
|
View Answer
|
|
What is conversion constructor?
|
View Answer
|
|
What are all the implicit member functions of the class? Or what are all the functions which compiler implements for us if we don't define one.??
|
View Answer
|
|
When are copy constructors called?
|
View Answer
|
|
What is a Makefile?
|
View Answer
|
|
What does extern mean in a function declaration?
|
View Answer
|
|
Will it execute or not?
C++ Interview Questions and Answers
(Continued from previous question...)
Will it execute or not?
void main() { char *cptr = 0?2000; long *lptr = 0?2000; cptr++; lptr++; printf(” %x %x”, cptr, lptr); }Will it execute or not?
|
View Answer
|