A database is a collection of inter-related data which helps in the efficient retrieval, insertion, and deletion of data from the database and organizes the… Read More
Tag Archives: school-programming
endl and \n both seem to do the same thing but there is a subtle difference between them. cout << endl inserts a new line… Read More
A whole array cannot be passed as an argument to a function in C++. You can, however, pass a pointer to an array without an… Read More
What is a structure? A structure is a key word that create user defined data type in C/C++. A structure creates a data type that… 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
Let the input string be “i like this program very much”. The function should change the string to “much very program this like i” Examples: … 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 the number… Read More