web analytics

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.

What is #include directive?

#include directive:  C programs are divided into modules or functions. Some functions are written by users and some are stored in C library. Library functions are grouped category wise and stored in different files known as header files. To access the file stored in the library, it is necessary to tell the compiler about the … Read more

Define preprocessor, function, compile time, run time.

Preprocessor: It is a program that process the source code before it passes through the compiler. Function: A function is a subroutine that may include one or more statements designed to perform specific tasks. For C programming functions are as building blocks. Compile time: Compile time refers to the event that occur during the compilation process. Run time: Run … Read more