A queue is a linear data structure which follows the FIFO (first-in first-out) principle. That means the object which is inserted first will be the first one out, followed by the object which was inserted next.
What should be the if condition in below code snippet, so that output would be “Hello World”. if “condition” printf (“Hello”); else printf(“World”);
Write a C program to print pyramid pattern of stars. This post covers below patterns formed by pyramid
Given three integers, find maximum and minimum number between them without using conditional statement or ternary operator.
Write a C program to print Rhombus pattern of stars. A rhombus is a quadrilateral all of whose sides have the same length.
Given a large number N, find all positive numbers less than N that can be represented as sum of two cubes for at-least two different pairs. In other words, find all positive numbers M less than given number N that can be expressed as M = (a^3 + b^3) = (c^3 + d^3) for …
Write a program to print “Hello World” with empty main function i.e. without writing anything inside main() function.
In previous post, we have discussed C++ implementation of queue data structure using class and standard libraries. In this article, we will make the class code generic by using C++ templates to support all data-types.
Write a C program to print diamond pattern of stars. This post covers below patterns
Write a program to print all numbers between 1 to N without using loop.
Write a program to print a semicolon without using semicolon anywhere in the program.