What are dynamic type checking?
Answer / Jatin Girdhar
Dynamic type checking, also known as runtime type checking, involves checking the data types of variables or objects at runtime. This is usually done through explicit casting or run-time type identification.
| Is This Answer Correct ? | 0 Yes | 0 No |
what you know about c++?
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
What is setiosflags c++?
give me some class & objects examples?
When you overload member functions, in what ways must they differ?
How does code-bloating occur in c++?
class professor {}; class teacher : public virtual professor {}; class researcher : public virtual professor {}; class myprofessor : public teacher, public researcher {}; Referring to the sample code above, if an object of class "myprofessor" were created, how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 e) 4
What are vectors used for in c++?
How we can differentiate between a pre and post increment operators during overloading?
When do we use copy constructors?