C Programming Interview Questions and Answers-3

Q: – What are stdin, stdout, and stderr? In C, a file is treated as a series of bytes that is called file stream. stdin, stdout, and stderr are all pre-opened file streams. stdin is the standard input for reading; stdout is the standard output for writing; stderr is the standard error for outputting error messages. Q: – What value is yielded by a relational expression? A relational expression evaluates to either 0 or 1. If the relation indicated by a relational operator in an expression is true, the expression evaluates to 1; otherwise, the expression evaluates to 0. Q: … Click here to continue…..

C Programming Interview Questions and Answers-2

Q: – Why is the main() function needed in a program? The execution of a C program starts and ends with the main() function. Without the main() function, the computer does not know where to start to run a program. Q: – What does the #include directive do? The #include directive is used to include header files that contain the declarations to the functions used in your C program. In other words, the #include directive tells the C preprocessor to look into the include path to find the specified header file. Q: – Why do you need a linker? After … Click here to continue…..

C Programming Interview Questions and Answers-1

Q: – Explain about storage of union elements. The key point about storage of union elements is that Union elements are use to share common memory space. Q: – What is a memory leak? Memory leak is that when memory is allocated but its not released because of an application consume memory reducing the available memory for other applications and causing the system to page virtual memory to the hard drive showing the application or crashing the application. When the computer memory resource limits are reached. Q: – Is C is platform dependent or independent?how and why? Major issue behind … Click here to continue…..