web analytics

2015

What is loop

Loop A loop is a particular area of a program where some executable statements are written which gets execution by testing one or more conditions. So, in looping, a sequence of statements is executed until some conditions for termination are satisfied. A program loop therefore consists of two segments; the body of the loop and …

What is loop Read More »

What are the static arrays and dynamic arrays

Static arrays : The process of allocating memory at compile time is known as static memory allocation and the arrays that receives static memory allocation are called static arrays. This approach works fine as long as user know that what the data requirements are. Dynamic arrays : The process of allocating memory at run time is known …

What are the static arrays and dynamic arrays Read More »

Write down the initialization of two dimensional array

Initialization of two dimensional array : Like the one dimensional arrays, two dimensional arrays may be initialized by following their declaration with a list of initial values enclosed in braces. For example,                    int table[2][3]={0,0,0,1,1,1}; This initializes the elements of the first row to 0 and the second row to 1. This statement can also be …

Write down the initialization of two dimensional array Read More »

Write down about the initialization of one dimensional array

Initialization of one dimensional array :  After an array is declared, its elements must be initialized. An array can be initialized either of the following stages, §  At compile time. §  At run time. Compile time initialization : User can initialize the elements of an array in the same way as the ordinary variables when they are declared. This …

Write down about the initialization of one dimensional array Read More »

Write down about the declaration of one dimensional array.

Declaration of one dimensional array : Like any other variable, arrays must be declared before they are used. The general form of array declaration is,                    type variable_name[size]; The type specifies the type of elements that will be contained in the array, such as int, float etc. The size indicates the maximum number of element that …

Write down about the declaration of one dimensional array. Read More »

Write down about the three types of arrays.

One dimensional array:  A list of items can be given one variable name using only one subscript and such a variable is called a one dimensional array.               Example : int number[5]; Here in the example, 5 value of the variable number can be kept under the single variable number. Two dimensional array:  When by using an array …

Write down about the three types of arrays. Read More »

What do you mean by arrays? Write different types of arrays.

Array : Array is a derived data type. When it is necessary to store more than one value under a variable, user can make use of array. An array is a fixed-size sequence collection of elements of the same data type. It is simply a grouping of like-data type.               Different types of arrays : There are three …

What do you mean by arrays? Write different types of arrays. Read More »

What is operating system (Definition)

Operating system: An operating system is a program that controls the entire operation of a computer system. All input/output functions are channeled through the operating system. The operating system which is the interface between the hardware and the user, handles the execution of user programs. What is operating system? Describe operating systems in brief.

Scroll to Top