Skip to content

Tag Archives: CBSE – Class 11

Loops in programming come into use when we need to repeatedly execute a block of statements. For example: Suppose we want to print “Hello World”… Read More
Problem: Given an array arr[] of n elements, write a function to search a given element x in arr[]. Examples :   Input : arr[] =… Read More
Important Terminology Database: Database is a collection of inter-related data which helps in efficient retrieval, insertion and deletion of data from database and organizes the data… Read More
Although they both seem to do the same thing, there is a subtle difference between them.  cout << endl : Inserts a new line and… Read More
A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or… Read More
In C, when we pass an array to a function say fun(), it is always treated as a pointer by fun(). Below example demonstrates the… Read More
  An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and… Read More
What is a structure? A structure is a user defined data type in C/C++. A structure creates a data type that can be used to… Read More
Compiler and Interpreter are two different ways to translate a program from programming or scripting language to machine language. A compiler takes entire program and… Read More
Given an array of integers, find sum of its elements. Examples : Input : arr[] = {1, 2, 3} Output : 6 1 + 2… Read More
Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”… Read More
  Given an array (or string), the task is to reverse the array/string.Examples :   Input : arr[] = {1, 2, 3} Output : arr[] =… Read More
The Function prototype serves the following purposes – 1) It tells the return type of the data that the function will return. 2) It tells… Read More