Archives: C_Programming

C Programming Interview Question and Answers

C Programming theory Questions and answers – Part 1 C Programming theory Questions and answers – Part 2 C Programming theory Questions and answers – Part 3 C Programming theory Questions and answers – Part 4 C Programming theory Questions and answers – Part 5


C Programming theory Questions and answers – Part 5

201. What is the difference between exit() and return() in c? Answer : Exit() is a system call which terminates current process. Exit() is not an instruction of c language. Whereas, return() is a c language instruction/statement and it returns from the current function (I.E. Provides exit status to calling function and provides control back • Read More »


C Programming theory Questions and answers – Part 4

151. What is an endless loop? Answer : An endless loop can mean two things. One is that it was designed to loop continuously until the condition within the loop is met, after which a break function would cause the program to step out of the loop. Another idea of an endless loop is when • Read More »


C Programming theory Questions and answers – Part 3

101. What is a far pointer? Where we use it? Answer : In large data model (compact, large, huge) the address B0008000 is acceptable because in these model all pointers to data are 32bits long. If we use small data model(tiny, small, medium) the above address won‘t work since in these model each pointer is • Read More »


C Programming theory Questions and answers – Part 2

51. What is dynamic memory allocation? Answer : A dynamic memory allocation uses functions such as malloc() or calloc() to get memory dynamically. If these functions are used to get memory dynamically and the values returned by these function are assigned to pointer variables, such a way of allocating memory at run time is known • Read More »


C Programming theory Questions and answers – Part 1

1. Explain what is pointer? Answer : Pointers is a variable that stores or points the address of another variable. A Pointer in C is used to allocate memory dynamically, i.e. at run time. The pointer variable can be of any of the data type such as int, float, char, double, short etc. 2. What • Read More »