Basic C Interview Questions - Frequently asked in C interview

Volatile variables get special attention from the compiler. A variable declared with the volatile keyword may be.....
A segmentation violation usually indicates an attempt to access memory which doesn't even exist...
A bus error indicates an attempt to access memory in an illegal way,perhaps due to an unaligned pointer....
A programming technique in which a function may call itself....
Static is an access qualifier that limits the scope but causes the variable to exist for the lifetime of the program....
The following are the differences between structures and arrays: Array elements are homogeneous. Structure elements are of different data type....
A macro is a name given to a block of C statements as a pre-processor directive...
Pass by value always invokes / calls the function or returns a value that is based on the value....
The static identifier is used for initializing only once, and the value retains during the life time of the program / application....
The auto variables are stored in the memory of the system. The keyword ‘auto’ is optional......
The difference between arrays and linked lists are: Arrays are linear data structures. Linked lists are linear and non-linear data structures....
A set of named integer constants is known as an enumeration. The enumeration type declaration includes the name of the enumeration tag.....
The storage allocation / class determine the memory part where the storage space is allocated for variables, functions and how long the allocation of storage continues to exist......
The variables of ‘register’ type modifier will inform the compiler for storing the variables in a register of CPU....
The keyword typedef is used for defining user defined data types. A new definition of existing data types is created by using typedef.....
It is possible to specify variable field width in a scanf() format string....
The function fgets() function is safer to use. It checks the bounds, i.e., the size of the buffer and does not cause overflow on the stack to occur......
The function strcpy() will not allocate the memory space to copy. A pointer to the string to copy and a pointer to place to copy it to should be given.....
For char[] array, such size is not accepted by the compiler. If the size is specified, the following are the differences between char *a and char a[]......
A void pointer is pointer which has no specified data type. The keyword ‘void’ is preceded the pointer variable......
A const pointer is not the pointer to constant, it is the constant. For example, int* const ptr; indicates that ptr is a pointer......a
An unwanted increase in programs is referred as a memory leak is C language...
Static Memory Allocation: Memory is allocated for the declared variable by the compiler....
The function main() calls / invokes other functions within it. The execution of the program always starts with main() function.....
A #define is used as immediate constant or as a macro. Where as the constant is a variable whose value can not change.....
The scope and lifetime of a variable or / and function within a C program is defined by storage class.....