Skip to content
Gblog GEEK-O-LYMPICS 2022 – May The Geeks Force Be With You!
Is it possible to have tons of fun while maintaining your competitive spirit? Totally! It is 100% possible. For the geeks who code hard and… Read More
Predict the output of following C Program. #include <stdio.h> #define R 4 #define C 4    void modifyMatrix(int mat[][C]) {    mat++;    mat[1][1] = 100;    mat++;… Read More
Directly accessing Grandparent’s member in Java: Predict the output of the following Java program. Java // filename Main.java class Grandparent {     public void Print()     {… Read More
Write a program to find the smallest of three integers, without using any of the comparison operators. Let 3 input numbers be x, y and z.Method… Read More
Given two numbers represented by two lists, write a function that returns the sum list. The sum list is a list representation of the addition… Read More
Predict the output of the following Java programs.  Question 1:  Java package main;   class Base {     public void Print()     {         System.out.println("Base");     } }  … Read More
Difficulty Level: Rookie  Predict the output of the following Java Programs. Program 1: Java // filename Main.java class Test {     protected int x, y; }… Read More
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m,… Read More
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m,… Read More
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m,… Read More
  Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach… Read More
In the virtual constructor idiom we have seen the way to construct an object whose type is not determined until runtime. Is it possible to create… Read More
Can we make a class constructor virtual in C++ to create polymorphic objects? No. C++ being a statically typed (the purpose of RTTI is different) language, it… Read More
Question 1 Consider the following recursive C function. Let len be the length of the string s and num be the number of characters printed on… Read More
Predict the output of following C++ programs. Question 1 template <class S, class T> class Pair { private:     S x;     T y; /* ... */… Read More

Start Your Coding Journey Now!