Skip to content
Gblog Geeks Summer Carnival – The Biggest Coding Festival is Back!
The opening breeze of summer has already blown – and like always, it has come up with a lot of positive and fun vibes. Some… Read More
Predict the output of below programs Question 1 int main() {     int i = 0;     while (i <= 4)     {        printf("%d", i);        if (i >… Read More
Following questions have been asked in GATE CS exam. 1. Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and… Read More
Difficulty Level: Rookie Question: Write a program to print N equal parts of a given string. Solution: 1) Get the size of the string using… Read More
Following questions have been asked in GATE CS exam. 1. Which of the following is NOT a valid deadlock prevention scheme? (GATE CS 2000) (a)… Read More
Given two numbers ‘a’ and b’. Write a program to count number of bits needed to be flipped to convert ‘a’ to ‘b’. Example :   Input… Read More
There are two sorted arrays. First one is of size m+n containing only m elements. Another one is of size n and contains n elements.… Read More
This is quite simple. Just traverse the node from root to left recursively until left is NULL. The node whose left is NULL is the… Read More
Well, we assume that you know what does it mean by pointer in C. So how do we create a pointer to an integer in… Read More
Asked by Tanuj Here is the standard prototype of printf function in C. int printf(const char *format, ...); The format string is composed of zero… Read More
Asked by Varun Bhatia. Question: Write a code for implementation of doubly linked list with use of single pointer in each node. Solution: This question… Read More
You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list.… Read More
At the first look, it seems that writing a C macro which prints its argument is child’s play. Following program should work i.e. it should… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More