Interview/Viva Question of C language - Part I

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.




SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Important of Database privilages

Database privileges Privileges are the right or permission to execute particular SQL statements.                           System Se...