Skip to content
Gblog Write It Up: Share Your Interview Experiences
Since we are receiving so many interview experiences, we have great news to share with you. Therefore, we are moving this event’s date up to… Read More
Predict the output of the below programs. Difficulty Level: RookieQuestion 1  c #include<stdio.h> int main() {    typedef int i;    i a = 0;       printf("%d", a);    getchar();… Read More
In C, function parameters are always passed by value. Pass-by-reference is simulated in C by explicitly passing pointer values. My Personal Notes arrow_drop_up Save
Most of the time, pointer and array accesses can be treated as acting the same, the major exceptions being:  1) the sizeof operator o sizeof(array) returns… Read More
Following are the things that a derived class inherits from its parent. 1) Every data member that is defined in the parent class (although such members… 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 the smallest and second smallest element in an array.  Example:  Input: arr[] = {12, 13, 1, 10, 34,… 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 mainly to, To increase the efficiency of code To save time It is inefficient to copy the… 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 the array is already sorted, then the… 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 the… Read More

Start Your Coding Journey Now!