Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
Inline function is one of the important feature of C++. So, let’s first understand why inline functions are used and what is the purpose of… Read More
Given a string, check if it is a rotation of a palindrome. For example your function should return true for “aab” as it is a… Read More
Given a string, write a c function to check if it is palindrome or not. A string is said to be palindrome if reverse of… Read More
Given a number ‘n’, find the smallest number ‘p’ such that if we multiply all digits of ‘p’, we get ‘n’. The result ‘p’ should… Read More
Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce. Types of smart pointer. Importance of… Read More
  We have discussed an introduction to Constructors in C++. In this post, the copy constructor is discussed.What is a copy constructor? A copy constructor is… Read More
I recently cleared the Amazon SDE position. Through out my preparation GeeksforGeeks played great role, this is the only site which i referred/followed more than… Read More
In C++, we can make operators to work for user defined classes. This means C++ has the ability to provide the operators with a special… Read More
A template is a simple and yet very powerful tool in C++. The simple idea is to pass data type as a parameter so that… Read More
1st there was a online assessment. Oracle finance and oracle server, both had almost the same paper..4 sections.. 1) eng 2) apti 3) basic technical… Read More
  Friend Class A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes… Read More
You are given a function rand(a, b) which generates equiprobable random numbers between [a, b] inclusive. Generate 3 numbers x, y, z with probability P(x),… Read More
A nibble is a four-bit aggregation, or half an octet. There are two nibbles in a byte. Given a byte, swap the two nibbles in it.… Read More
Remain Careful from these two persons new friends and old enemies — Kabir What is static keyword in C++? static keyword can be applied to… Read More
Like member functions and member function arguments, the objects of a class can also be declared as const. an object declared as const cannot be… Read More