Interview/Viva Question of C language - Part I
1. What is the C language?
-> C is a high-level structure oriented programming language. It's used to performing programs
2. Which are the different storage classes specifier in C language?
-> Static, Auto, Register,extern
3. What is difference between i++ and ++i ?
-> The expression i++ return old value and then increment the value of i. and in expression ++i first value is incremented and its return the new value.
4. What is a pointer on the pointer?
-> It is a pointer variable which can hold the address of another pointer variable.
5. What is #include?
-> It is a preprocessing directive. Which is used to add or include the header file like stdio.h or conio.h.
6. What is stdio.h?
-> stdio.h is standard input-output header file, In this header file having some standard input-output functions such as printf() and scanf().
7. What is conio.h?
-> conio.h is the standard header file. Its declare library functions for performing console input and output.
8. What is the prototype function?
-> prototype function provide some information to the compiler like
a) Name of function 2) Parameter of function 3) return type of function.
9. How many types of the loop in C language?
-> There are 3 types of loop in C
a) While Loop
b) For Loop
c) Do while Loop
10. What is the use of the main() function?
-> Main function same as every function, it has the return type. The main function is called by the operating system when the user runs the program.
You can visit...
What should I do after graduation???
Program for addition
Program for Odd Even
Program for Sum of Digit
Program for Reverse of number
What should I do after graduation???
Program for addition
Program for Odd Even
Program for Sum of Digit
Program for Reverse of number
0 comments:
Post a Comment