Skip to content
Gblog Bi-Wizard School Coding Tournament By GeeksforGeeks – For Class 8-12 Students
Bi-Wizard School Coding Tournament by GeeksforGeeks – ‘Coding is the New Literacy’ and no one can deny this fact! And especially, when it comes to… Read More
Consider the following C programs. // PROGRAM 1 #include<stdio.h>    int main(void) {     int a = 1, 2, 3;     printf("%d", a);     return 0; } The… Read More
Predict the output of following C++ program. C++ #include <iostream> using namespace std;   int main() {     try     {         throw 'x';     }     catch(int x)     {… Read More
Question: How to deallocate dynamically allocate memory without using “free()” function. Solution: Standard library function realloc() can be used to deallocate previously allocated memory. Below… Read More
Predict the output of following C program. int main(void) {     struct str     {         int i: 1;         int j: 2;         int k: 3;         int l: 4;… Read More
Given an array A[0 … n-1] containing n positive integers, a subarray A[i … j] is bitonic if there is a k with i <=… Read More
Predict the output of following C++ program. #include <iostream> using namespace std;    class Test { public:   Test() { cout << "Constructing an object of… Read More
A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying… Read More
Predict the output of following C programs:Difficulty Level: Rookie Question 1   C #include<stdio.h> int main() {     int arr[] = {10, 20, 30, 40, 50, 60};     int… Read More
Ever wondered how can you design a class in C++ which can’t be inherited. Java and C# programming languages have this feature built-in. You can… Read More
  Given a string str, find the length of the longest substring without repeating characters.  For “ABDEFGABEF”, the longest substring are “BDEFGA” and “DEFGAB”, with… Read More
Given an array of n distinct integers sorted in ascending order, write a function that returns a Fixed Point in the array, if there is… Read More
In the previous post on trie we have described how to insert and search a node in trie. Here is an algorithm how to delete… Read More
  The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined… Read More
Given a Singly Linked List, write a function to delete a given node. Your function must follow following constraints: 1) It must accept a pointer to… Read More
Consider simple representation (without any dummy node) of Linked List. Functions that operate on such Linked lists can be divided into two categories: 1) Functions… Read More

Start Your Coding Journey Now!