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