Monday, October 31, 2016

25 Best C programming interview questions and answers

c programming interview questions and answers pdf

Frequently Asked C programming Interview questions and answers pdf for freshers and experienced


1. What do you know about C programming language?

Ans:
The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C is prized for its efficiency, and is the most popular programming language for writing system software, though it is also used for writing applications.

2. Who is the father of c?

Ans:
Dennis Richi

3. What is the best way of making my program efficient?

Ans:
By picking good algorithms, implementing them carefully, and making sure that your program isn't doing any extra work. For example, the most microoptimized character-copying loop in the world will be beat by code which avoids having to copy characters at all.

4. What is variable initialization and why is it important?

Ans:
This refers to the process wherein a variable is assigned an initial value before it is used in the program. Without initialization, a variable would have an unknown value, which can lead to unpredictable outputs when used in computations or other operations.

5. Differentiate Source Codes from Object Codes

Ans:
Source codes are codes that were written by the programmer. It is made up of the commands and other English-like keywords that are supposed to instruct the computer what to do. However, computers would not be able to understand source codes. Therefore, source codes are compiled using a compiler. The resulting outputs are object codes, which are in a format that can be understood by the computer processor. In C programming, source codes are saved with the file extension .C, while object codes are saved with the file extension .OBJ







EmoticonEmoticon