Technical Interview Questions and Answers :: C
- header functions contains functions which we can use in programs and functions are declared in header files.
31 / 123
main() function is the predefined function of the stdio.h library . main() function is responsible for the execution of the programs.
32 / 123
It is possible to pass some values from the command line to your C programs when they are executed. These values are called
33 / 123
34 / 123
Actual parameters are the values passed while calling the function and the formal parameters are the variables used in function.
35 / 123
IN PASS BY VALUE COPY OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CANNOT BE MODIFIED.
36 / 123
ADDRESS OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CAN BE MODIFIED
37 / 123
get char():reads a single character at a time
scanf():scanf reads all type of data like int,float,char,etc
38 / 123
Fgets() is better as it checks the array bound.
39 / 123
No Discussion on this question yet!
40 / 123
Pointer is a variable which are stored in the address of the another variable