web analytics

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 … 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 … 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 … 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 … 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.

Write down steps of ‘executing a C program’

Executing a C program :  Executing a C program involves a series of steps. They are, Creating the program. Compiling the program. Linking the program with functions that are needed from the C library. Executing the program.             Although these steps remain the same irrespective of the operating system, system … Read more

What is #define directive?

#define directive: A #define is a preprocessor compiler directive and not a statement. #define should not end with a semicolon. Symbolic constants are generally written in uppercase so that they can be easily distinguished from the lowercase variable names. #define instructions are usually placed at the beginning before the main() function.