What are the total number of lines written by you in C/C++?
What is the most complicated or valuable program written in
C/C++?
Answers were Sorted based on User's Feedback
Answer / charan
since c,c++ is user friendly as well as medium level
language,free form language user can take his own space for
executing a program it may include printing along with
header files.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sahadev
depend upon the available memory in the ram,it may be one
line or more
| Is This Answer Correct ? | 5 Yes | 7 No |
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Tell me what are static member functions?
Differentiate between the message and method in c++?
What are features of c++?
What are the operators in c++?
What are references in c++? What is a local reference?
What is a base class?
What is a pointer how and when is it used?
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
How long does this loop run: for(int x=0; x=3; x++) a) Never b) Three times c) Forever
17 Answers Datavance, Quark, VEL, Wipro,
What is the object serialization?
Can non-public members of another instance of the class be retrieved by the method of the same class?