Prerequisite: Virtual Function in C++Calling virtual functions from a constructor or destructor is considered dangerous most of the times and must be avoided whenever possible.… Read More
A virtual function (also known as virtual methods) is a member function that is declared within a base class and is re-defined (overridden) by a… Read More
Given a string, extract the first letter of each word in it. “Words” are defined as contiguous strings of alphabetic characters i.e. any upper or… Read More
Given a number N. You are tasked with finding the smallest number S, such that N is a factor of S! (S factorial). N can… Read More
Explain the data structures and algorithms that you would use to design an in-memory file system. Illustrate with an example in the code logic where… Read More
Prerequisites: Image Processing in Java – Read and Write Image Processing In Java – Get and Set Pixels Image Processing in Java – Colored Image… Read More
Prerequisites: Image Processing in Java – Read and Write Image Processing In Java – Get and Set Pixels Image Processing in Java – Colored Image… Read More
Given a singly linked list containing n nodes. Modify the value of first half nodes such that 1st node’s new value is equal to the… Read More
strcpy() is a standard library function in C++ and is used to copy one string to another. In C++ it is present in the <string.h>… Read More
OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. Using this, we can make a lot of design as well as… Read More
Coroutines are general control structures where flow control is cooperatively passed between two different routines without returning. If you have used Python or C#, you may… Read More
Predict the output of the following C programs.1. What will be the output of following program? Input: 1 3 C #include<stdio.h> int main() { int a,… Read More
Integer literal is a type of literal for an integer whose value is directly represented in source code. For example, in the assignment statement x… Read More
Given two numbers N and K. We need to find out if ‘N’ can be written as sum of ‘K’ prime numbers. Given N <= 10^9… Read More