

Basic c programs asked in interview for freshers how to#
How to check whether macro is defined or not in a C program?.How will you override an existing macro in C?.

What is pragma in C? Or how will you execute functions before and after main function in C program?.What is the difference between exit() and return() in C?.Is it possible to call atexit() function more than once in a C program?.If you want to execute C program even after main function is terminated, which function can be used?.How many arguments can be passed to a function in C?.Where should type cast function not be used in C?.What is the difference between auto variable and static variable in C?.What is the difference between auto variable and register variable in C?.What is the value assigned to the following variables? int X1 = 13/3 int X2 = 13%3.What value will be assigned to the variable X if a = 10, b = 20, c = 30, d = 40 for the expression X = a/b+c*d-c?.Why is default statement used in switch case in C?.What will happen if break statement is not used in switch case in C?.What is the difference between pre decrement operator and post decrement operator?.What is the difference between pre increment operator and post increment operator?.What is the difference between single equal “=” and double equal “=” operators in C?.What is the difference between while and do-while loops in C?.What are all loop control statements in C?.What are all decision control statements in C?.What is the syntax for ternary operator in C?.What are the different types of operator in C?.What are the different types of variable in C?.What is the difference between variable declaration and variable definition in C?.What is the difference between constant and variable in C?.List out some keywords available in C language.What are different types of modifiers in C?.What is the use of sizeof() function in C?.What is the difference between int, char, float and double data types?.What are all the sections that a C program may have and must have?.Execution of a C program starts from which function?.What is the difference between assembler, compiler and interpreter?.What is the difference between structured oriented, object oriented and non-structure oriented programming language?.What do you mean by high level, middle level and low level languages and give an example for each?.Which level is C language belonging to?.What are the key features of C language or what are the characteristics of C language?.What is meant by programming language and give some examples?.C language has been developed in which language?.What is the difference between C and Java?.What is the difference between top down approach and bottom up approach in programming languages?.What is the difference between C and C++?.Where is C programming language used or uses of C language?.Describe about history of C programming language.
