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
Following are the things which a derived class inherits from its parent. 1) Every data member defined in the parent class (although such members may… Read More
In ISO C, you can define main either to take no arguments, or to take two arguments that represent the command line arguments to the… Read More
To know the IP address(es) of a URL/website, nslookup can be used at the shell/command prompt (cmd.exe). It works on both types of operating systems… Read More
In C language, sizeof( ) is an operator. Though it looks like a function, it is an unary operator. For example in the following program,… Read More
Follow questions have been asked in GATE CS exam. 1 In a heap with n elements with the smallest element at the root, the 7th… Read More
Write an efficient C program to find smallest and second smallest element in an array.  Example:   Input: arr[] = {12, 13, 1, 10, 34, 1}… Read More
Following questions have been asked in GATE CS exam. 1. In the C language (GATE CS 2002) a) At most one activation record exists between… Read More
Question: An Array of integers is given, both +ve and -ve. You need to find the two elements such that their sum is closest to… Read More
In C, array parameters are treated as pointers. The following two definitions of foo() look different, but to the compiler they mean exactly the same… Read More
Following questions have been asked in GATE CS exam. 1. Using a larger block size in a fixed block size file system leads to (GATE… Read More
Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More
Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More
Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More
Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More
  Inversion Count for an array indicates – how far (or close) the array is from being sorted. If the array is already sorted, then… Read More