The process of removing function entries from function call stack at run time is called Stack Unwinding. Stack Unwinding is generally related to Exception Handling.… Read More
Exception Handling – catching base and derived classes as exceptions: If both base and derived classes are caught as exceptions then catch block of derived… Read More
In C/C++, precedence of Prefix ++ (or Prefix –) has higher priority than dereference (*) operator, and precedence of Postfix ++ (or Postfix –) is… Read More
What will be the output of the following C program? #include <stdio.h> int main() { int a = 3, b = -8, c = 2;… Read More
In C/C++, when a character array is initialized with a double quoted string and array size is not specified, compiler automatically allocates one extra space… Read More
Predict the output of following C++ program. #include <iostream> using namespace std; int main() { int test = 0; cout << "First character "… Read More
Recursion:In programming terms a recursive function can be defined as a routine that calls itself directly or indirectly.Using recursive algorithm, certain problems can be solved… Read More
Assigning values to static final variables in Java: In Java, non-static final variables can be assigned a value either in constructor or with the declaration.… Read More
A class declaration can contain static object of self type, it can also have pointer to self type, but it cannot have a non-static object… Read More
Modulus operator is costly. The modulus operator (%) in various languages is costly operation. Ultimately every operator/operation must result in processor instructions. Some processors won’t… Read More
Every literal (constant) in C/C++ will have a type information associated with it. In both C and C++, numeric literals (e.g. 10) will have int… Read More
In C, if an object that has static storage duration is not initialized explicitly, then: — if it has pointer type, it is initialized to… Read More
Featured Articles
View All