Is it possible to write a c++ template to check for a function's existence?
No Answer is Posted For this Question
Be the First to Post Answer
Can you please explain the difference between using macro and inline functions?
Give an example of run-time polymorphism/virtual functions.
What is cout flush?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Does a derived class inherit or doesn't inherit?
given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Is map sorted c++?
Describe new operator and delete operator?
Describe the syntax of single inheritance in C++?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }