<< < 3 4 5 6 7 8   Sort: Rank

What do you mean by Stack unwinding? C++
What do you mean by Stack unwinding? C++ It is a process during exception handling when the destructor is called for all local objects between the place where the exception was thrown and where it is caught.
2012-01-11, 2476👍, 0💬

What is class invariant? C++
What is class invariant? C++ A class invariant is a condition that defines all valid states for an object. It is a logical condition to ensure the correct working of a class. Class invariants must hold when an object is created, and they must be preserved under all operations of the class. In partic...
2012-01-10, 2449👍, 0💬

What is a Null object? C++
What is a Null object? C++ It is an object of some class whose purpose is to indicate that a real object of that class does not exist. One common use for a null object is a return value from a member function that is supposed to return an object with some specified properties but cannot find such an...
2012-01-10, 2446👍, 0💬

What is an adaptor class or Wrapper class? C++
What is an adaptor class or Wrapper class? C++ A class that has no functionality of its own. Its member functions hide the use of a third party software component or an object with the non-compatible interface or a non-object-oriented implementation.
2012-01-09, 2357👍, 0💬

Differentiate between the message and method. C++
Differentiate between the message and method. C++ Message: * Objects communicate by sending messages to each other. * A message is sent to invoke a method. Method * Provides response to a message. * It is an implementation of an operation.
2012-01-09, 2380👍, 0💬

What is a dangling pointer? C++
What is a dangling pointer? C++ A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed. The following code ...
2012-01-06, 2364👍, 0💬

What is an incomplete type? C++
What is an incomplete type? C++ Incomplete types refers to pointers in which there is non availability of the implementation of the referenced location or it points to some location whose value is not available for modification. int *i=0x400 // i points to address 400 *i=0; //set the value of memory...
2012-01-06, 2455👍, 0💬

What is an Iterator class? C++
What is an Iterator class? C++ A class that is used to traverse through the objects maintained by a container class. There are five categories of iterators: input iterators, output iterators, forward iterators, bidirectional iterators, random access. An iterator is an entity that gives access to the...
2012-01-05, 2378👍, 0💬

What is the use of ‘using’ declaration. C++
What is the use of ‘using’ declaration. C++ A using declaration makes it possible to use a name from a namespace without the scope operator.
2012-01-05, 2495👍, 0💬

Define namespace. C++
Define namespace. C++ It is a feature in C++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespa...
2012-01-04, 2370👍, 0💬

When does a name clash occur? C++
When does a name clash occur? C++ A name clash occurs when a name is defined in more than one place. For example., two different class libraries could give two different classes the same name. If you try to use many class libraries at the same time, there is a fair chance that you will be unable to ...
2012-01-04, 2389👍, 0💬

Differentiate between a template class and class template.C++
Differentiate between a template class and class template.C++ Template class: A generic definition or a parameterized class not instantiated until the client provides the needed information. It’s jargon for plain templates. Class template: A class template specifies how individual classes can be con...
2012-01-03, 2433👍, 0💬

What is an accessor? C++
What is an accessor? C++ An accessor is a class operation that does not modify the state of an object. The accessor functions need to be declared as const operations
2012-01-03, 2479👍, 0💬

What is a modifier? C++
What is a modifier? C++ A modifier, also called a modifying function is a member function that changes the value of at least one data member. In other words, an operation that modifies the state of an object. Modifiers are also known as ‘mutators’. Example: The function mod is a modifier in the foll...
2011-12-30, 2473👍, 0💬

What is C++?
What is C++? Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype known as a class (you will learn more about these...
2011-12-30, 2445👍, 0💬

General technical question
What is the difference between Java and C++? What is the advantage of each of them? Java does not support typedefs, defines, or a preprocessor. Without a preprocessor, there are no provisions for including header files. Since Java does not have a preprocessor there is no concept of #define macros or...
2011-06-28, 3235👍, 0💬

fork()
main() { int i = 2; int ret_val; while(i > 0) { ret_val = fork(); if (ret_val==0) { printf(“In child %d. \n”, i); } else{ printf(“In parent %d. \n”, i);} i=i-1; } } } The logic of this code looks clear. But what is the question?
2009-04-19, 4801👍, 0💬

<< < 3 4 5 6 7 8   Sort: Rank