Latest Answer: both in c and c++ data members are public by default. to make the data members private in c++, we must use the keyword private .C structures does not supports inheritance. Also, all members are public and the keywords public, private and protected are ...
Latest Answer: It will print any< garbage value> which depends on the compiler. ...
Could any one explan me what happens in this program. main(){ int i=10; i=(++i)/(i++); printf("i=%d",i); }
Latest Answer: All the solutions above are reading the source code with the files concepts.find a solution where you do not have a source file to read the contents.There is a macro or an attiribute which tells the compiler the name of the program, function or the attribute. ...
Latest Answer: We can declare pure virtual destructor but need to specify its body.Class Base {~Base() = 0;}Base::~Base(){}Pure virtual destructor does the same thing which other virtual functions do, makes Base class abstract.I didn't find any other reason to make ...
Latest Answer: pass multiple variables to the function as formal parameters ... function will actually set those values (output variables). ...
Latest Answer: An abstract class cannot be used on its own but must be first inherited in the derived class. ...
Latest Answer: abstract class ...
Latest Answer: It's not trivial to implement nested functions such that they have the proper access to local variables in the containing function(s), so they were deliberately left out of C as a simplification. (gcc does allow them, as an extension.) For many ...
Latest Answer: Real smart solution to this question is to use a LookUp table. ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top