viva questions
viva questions
C programming language supports multiple features. They are Middle- Level programming language, Modularity, Portability, Structured oriented programming
language, and Powerful data structure.
There are two kinds of data types in C. They are Predefined data types and User Defined data types. Int, char, double, and float is Predefined data types. Pointers,
arrays, strings, and structures are User-defined data types.
Errors in C are divided into two types. They are Compile-time errors and Run time errors.
4. What is a Function in C?
The functions which are coming with the compiler by default are known as Pre-defined Functions. E.g.:- sqrt, pow.
The functions which are written by the programmer are called User-defined Functions. You will need three components to write user-definedfunctions. They are
Function declaration, Function definition, and Function call
Conditional statements are the decision making statements in source code. They are of several types.
1. If statements
2. If else statements
3. If else If else statements
4. Switch- case statement
5. Nested if statement
We use iterative statements when we are going to use the repeated code. They are of several types.
For loop
Do while loop
While loop
Jump statements are used to break the loop, continue the loop, and jump to the required statement. They are of several types.
1. Break
2. Continue
3. Go to
It is also known as a library file. It contains a set of functions. It contains a definition and a prototype of the program.
Assembler is used to convert assembly language to machine language. Assembly language is nothing but a low-level language.
Variable is the name given to the memory space that may be used to store data. Its value can be changed depending on user requirements.
16. What are the different data types associated with the variable?