CODING
SYSTEM DESIGN
PLACEMENT PREP.
BLOG
LOGIN/REGISTER
MY ACCOUNT
LOGOUT
C++11 feature – automatic type detection and decltype
C++11 is the latest version of C++ language originally designed by Stroustrup. I read an interview of him where he said that the latest standard
[…]
Function Templates in C++
What are function templates in C++? Why and how are they used ?
Changing pointer passed to a function as argument
If a function in C/C++ takes a pointer argument and we try to change it (Not the value pointed to by pointer but the pointer
[…]
Making both elements of an array zero
Given an Array of two elements one of which is 0, the other is either 0 or 1. You have to make both the elements
[…]
Output of a recursive function
What will be the output of the below function if n is positive ?
Find error in the C++ code
What is the Error (if any) in the below C++ code
Should we use user-defined type conversions
Yesterday I talked about what are user-defined conversions and how Single Argument constructor and overloaded type conversions operators act as type conversions from a Class
[…]
User-defined type conversions in C++ (Single argument constructor & implicit type conversion operators function)
There are 2 types of user-defined conversion functions in C++ - Single Argument constructor. - implicit type conversion operators. Explain them
difference between reference & pointers in C++
What is the difference between reference & pointers in C++? Is it safe to use pointers in places where we use reference & vice-versa?
Out of memory condition in C++ for new operator
How will you handle a situation if new operator is not able to allocate memory on heap to your program? In C language malloc returns
[…]
Load more