C Language Interview Questions and Answers for Freshers - 3
Question: 11
Can we make our own header files?
Yes. You can make your own header files and put the declarations of functions and related constants and macros developed by you.
Question: 12
What is the difference between rand(), random(), and randomize()?
random() - returns random number between 0 and one less that its argument.
rand () – returns successive pseudo random numbers in the range 0 to RAND_MAX.
srand() – initializes the random number generator with a given seed value.
randomize() – initializes the random number generator with a random value.
Question: 13
What is a subprogram/module?
It is a program carrying out a particular function and which be called by another program known as the calling program.
A subprogram needs to be placed only once in memory and can be called by the main program or other subprogram as many times as the programmer wants. Also known by various names as function, subroutine or procedure.
Question: 14
What are the differences between exit() and return statement?
First difference is that exit() is a function while return is a statement.
Second difference is that exit() function terminates the program while return statement terminate the function.
Third difference is that exit() function always return some value where it is optional for return statement.
Question: 15
Do function prototypes get stored in executable file?
No. The compiler uses these functions prototypes at the time of compilation.
Therefore, once the program is compiled, they are not required.
Hence they are not stored in executable file.
- Top 500+ C Language Interview Questions and Answers Pdf
- C Language Interview Questions and Answers
- C Language Interview Questions and Answers for Freshers
- C Language Interview Questions and Answers for Experienced
- C Programming Interview Questions and Answers
- Embedded C Interview Questions and Answers Pdf
- Top 200+ Advanced C Language Interview Questions 2020-2021
- C Programming Question Bank with Answers Pdf
- C Programming Interview Questions and Answers for Freshers
- C Programming Interview Questions and Answers for Experienced
- C Programming Basics Questions and Answers Pdf
- 1000+ Advanced C Programming Interview Questions & Answers
- 1000+ C Interview Questions and Answers 2023 - 2024 Pdf
- 1000+ C Programming Coding Questions and Answers
- 1000+ C Basic Interview Questions for Freshers Pdf
- 1000+ C Questions and Answers Pdf
Science Solutions Class 10 Important Questions and Answers More
Science Solutions Class 10 Important Questions and Answers More
Samacheer Kalvi 10th Science Solutions Questions & Answers More
Samacheer Kalvi 10th Science Carbon and Its Compounds Questions More
Carbon and its Compounds Class 10 Questions and Answers More
JVM and Garbage Collections Interview Questions and Answers More
GATE Mechanical Engineering Question Papers with Solutions More
100+ Physics Question and Answer for Competitive Exams More
TNPSC Group 4 Physics Online Mock Test in English & Tamil More
1000+ Windows Administrator Interview Questions and Answers More