C Programming Interview Questions and Answers for Freshers - 1
Question: 1
Is it possible to create your own header files?
Yes, it is possible to create a customized header file.
Just include in it the function prototypes that you want to use in your program, and use the #include directive followed by the name of your header file.
Question: 2
What is “##” operator in C?
## is a pre-processor macro in C. It is used to concatenate 2 tokens into one token.
Question: 3
Can you pass an entire structure to functions?
Yes, it is possible to pass an entire structure to a function in a call by method style.
However, some programmers prefer declaring the structure globally, and then pass a variable of that structure type to a function.
This method helps maintain consistency and uniformity in terms of arguments type.
Question: 4
What is the difference between memcpy() & strcpy() functions in C?
memcpy() function is used to copy a specified number of bytes from one memory to another. Whereas, strcpy() function is used to copy the contents of one string into another string.
memcpy() function acts on a memory rather than value. Whereas, strcpy() function acts on value rather than memory.
Question: 5
What are actual arguments?
When you create and use functions that need to perform an action on some given values, you need to pass these given values to that function.
The values that are being passed into the called functions are referred to as actual arguments.
- 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
Signals and Systems Quiz Questions and Answers Pdf More
Signals and Systems MCQ Questions and Answers Pdf More
Electrical Power Sources Quiz Questions & Answers Pdf More
Electromagnetic Field Theory Question Bank 2024-2025 More
Power Semiconductor Device and Integrated Circuits Questions More
Computer Current Affairs Quiz 2020-2021 Pdf More
1000+ Maths Number Puzzles for Kids More
1000+ Computer Networks Viva Questions and Answers Pdf More
English Vocabulary Pdf for Banking & SSC Exams More
Oracle Disaster Recovery Interview Questions | Hot, Cold Backup More