sizeof- is it functioning statically or dynamically?
Answers were Sorted based on User's Feedback
Answer / sujay singh
sizeof is generally a compile-time operation, although in
C99 it can be used at run-time to find the size of a
variable length array.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / saranya
sizeof operator is a runtime operator because it is used to
get the size of the variable during the runtime.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is object slicing and how can we prevent it?
Can we overload operator in c++?
Explain how functions are classified in C++ ?
How is computer programming useful in real life?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is a singleton c++?
What is an incomplete type in c++?
how many controls can we place on single form.
Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator
2 Answers HCL, Lehman Brothers, Zoomerang,
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
What are friend functions?
What is the object serialization?