This website includes Education Information like a programming language, job interview question, general knowledge.mathematics

Education log

PageNavi Results No.

Ads

Sunday, September 22, 2019

Top C Programming Interview Questions and Answers Best c program Questions and Answers 2019

Today Topic discusses c programming  Interview Questions. c programming is an all the programming language base this language easy and simple you can see top basic c programming list click here this link. Basic_c_ programming this article you can learn  Best c program Questions and Answers.

so let's start a follow the Top  C Programming Interview Questions and Answers. Share and comment on  this blog




1. what is c programming?

Answer:
C is a general-purpose programming language that is extremely popular, simple and flexible. It is machine-independent, a structured programming language which is used extensively in various applications.



2. What is a pointer on a pointer in C programming language?

Answer:
A pointer variable that contains the address of another pointer
variable is called pointer on a pointer. This concept
de-refers twice to point to the data held by a pointer variable.

It is said that 'C' is a god's programming language. One can say, C is a base for the programming



3. What are the modifiers available in C programming language?

Answer:
There are 5 modifiers available in C programming language as follows.
Short
Long
Signed
Unsigned
long long



4. What are the key features in C programming language?

Answer:
1.Portability  Platform independent language.
2.Modularity  Possibility to break down large programs into small modules.
3.Flexibility  The possibility to a programmer to control the language.
S4.peed  C comes with support for system programming and hence it is 
compiling and executes with high speed when comparing with other high-level languages.
5.Extensibility  Possibility to add new features by the programmer.



5. What are the basic data types associated with C?

Answer:
1.Int Represent number (integer)
2.Float Number with a fraction part.
3.Double Double-precision floating point value
4.Char Single character
5.Void Special purpose type without any value.



6. Describe the modifier in C?

Answer:
Modifier is a prefix to the basic data type which is used to
indicate the modification for storage space allocation to a variable.
In 32-bit processor storage space for int data type is 4.When we use it with modifier the storage space change as follows.
Long int -> Storage space is 8 bit
Short int -> Storage space is 2 bit


7. What are reserved words with a programming language?

Answer:
The words that are part of the slandered C language library are called reserved words.
Those reserved words have special meaning and it is not possible
to use them for any activity other than its intended functionality.



8. Approximately what is the line #include <stdio.h> at the top of a C source file for?

Answer:
In the case of our first few programs, it lets the compiler know some important information about the library function, printf. It also lets the compiler know similar information about other functions in the ``Standard I/O library,'' some of which we'll be learning about later. (It also provides a few I/O-related definitions which we'll be using later.) We'll learn more about the #include directive when we cover the C Preprocessor in a few weeks

9. What are some uses for comments?

Answer:
 Describing what a particular variable is for, describing what a function is for and how it works, documenting the name, version number, purpose, and programmer of an entire program, explaining any tricky or hard-to-understand part about a program,


10. Why is indentation important? How carefully does the compiler pay attention to it?

Answer:
Answer: Indentation is important to show the logical structure of source code, in particular, to show which parts--the ``bodies`` of loops, if/else statements, and other control flow constructs--are subsidiary to which other parts. Indentation is not specially observed by the compiler; it treats all ``white space'' the same. Code which is improperly indented will give a human reader a mistaken impression of the structure of the code, an impression potentially completely different from the compilers. Therefore, it's important that the punctuation which describes the block structure of code to the compiler matches the indentation.

 11. What are the largest and smallest values that can be reliably stored in a variable of type int?

Answer:
32,767  and -32,767.


12. What is the difference between the constants 7, '7', and "7"?

Answer:
The constant 7 is the integer 7 (the number you get when you add 3 and 4). The constant '7' is a character constant consisting of the character `7' (the key between `6' and `8' on the keyboard, which also has a `&' on it on mine). The constant "7" is a string constant consisting of one character, the character `7'.

13. What is the function of the semicolon in a C statement?

Answer:
It is the statement terminator.


14.What is the description for syntax errors?

Answer:
The mistakes when creating a program called syntax errors. 
Misspelled commands or incorrect case commands, an incorrect number of parameters when called 
a method /function, data type mismatches can identify as common examples for syntax errors.
 

15. What is the explanation for modular programming?:

 Answer:
The process of dividing the main program into executable subsection is called module
programming. This concept promotes the reusability.

 

16. What is the explanation for prototype function in C?:

 Answer:
Prototype function is a declaration of a function with the following information to the compiler.
Name of the function.
The return type of the function.
Parameters list of the function.
prototype function in C



conclusion:
This topic covered  C Programming Interview Questions and Answers  then future more question and answer provide a this article.


No comments:

Post a Comment