Q #1) What are the key features in C programming language?
Portability – Platform independent language.
Modularity – Possibility to break down large programs into small modules.
Flexibility – The possibility to a programmer to control the language.
Speed – C comes with support for system programming and hence it is compiling and executes with high speed when comparing with other high-level languages.
Extensibility – Possibility to add new features by the programmer.
Q #2) What are the basic data types associated with C?Int – Represent number (integer)
Float – Number with a fraction part.
Double – Double-precision floating point value
Char – Single character
Void – Special purpose type without any value.
Q #3) What is the description for syntax errors?Ans) 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.Q #4) What is the process to create increment and decrement stamen in C?Ans) There are two possible methods to perform this task.1) Use increment (++) and decrement (-) operator.Example When x=4, x++ returns 5 and x- returns 3.2) Use conventional + or – sign.When x=4, use x+1 to get 5 and x-1 to get 3.Q #5) What are reserved words with a programming language?Ans) 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.Example void, return, int.Q #6) What is the explanation for the dangling pointer in C?Ans) When there is a pointer with pointing to a memory address of any variable, but after some time the variable was deleted from the memory location while keeping the pointer pointing to that location.Q #7) Describe static function with its usage?Ans) A function, which has a function definition prefixed with a static keyword is defined as a static function. The static function should call within the same source code.Q #8) What is the difference between abs() and fabs() functions?Ans) Both functions are to retrieve absolute value. abs() is for integer values and fabs() is for floating type numbers. Prototype for abs() is under the library file < stdlib.h > and fabs() is under < math.h >.Q #9) Describe Wild Pointers in C?Ans) Uninitialized pointers in the C code are known as Wild Pointers. These are a point to some arbitrary memory location and can cause bad program behavior or program crash.Q #10) What is the difference between ++a and a++?Ans) ‘++a” is called prefixed increment and the increment will happen first on a variable. ‘a++’ is called postfix increment and the increment happens after the value of a variable used for the operations.