Home
Features
Pricing
Interview Questions
More...
Categories
Top Employers
All Tags
Hot Tags
About Hirely
Start for Free
Start for Free
Home
/
Tags
/
Macros in c
Macros in c
shape
Software Development
Questions
07 Jan, 2025
C Interview Questions and Answers(2025)
In C, error handling is typically done through a combination of return codes, error messages, and sometimes, specialized error-handling functions. C does not provide built-in exceptions like higher-level languages, so error handling in C is generally done in a more manual way. Below are several common techniques for handling errors in C:
Software Development
Questions
07 Jan, 2025
C Interview Questions for Developers
The
const
keyword in C is used to define variables whose values cannot be changed after initialization. It serves as a way to protect data from accidental modification, making the program safer and easier to understand. Here's how it works:
Software Development
Questions
07 Jan, 2025
C Programming Interview Questions
A
function pointer
in C is a pointer that points to a function instead of pointing to a variable. It allows you to store the address of a function and call it indirectly through the pointer. This is useful when you want to pass functions as arguments to other functions, implement callbacks, or handle dynamic function selection at runtime.
Software Development
Questions
07 Jan, 2025
Top C Interview Questions(2024)
In C, both
struct
and
union
are used to group different data types together under a single name, but they differ significantly in terms of memory allocation and usage. Here are the key differences between
struct
and
union
:
Software Development
Questions
07 Jan, 2025
Top C Interview Questions(2024)
In C, both
struct
and
union
are used to group different data types together under a single name, but they differ significantly in terms of memory allocation and usage. Here are the key differences between
struct
and
union
:
Software Development
Questions
07 Jan, 2025
Top C Programming Interview Questions (2025)
Memory management in C is a critical aspect of programming and involves the allocation, usage, and deallocation of memory during program execution. C provides developers with a fine-grained control over memory, unlike higher-level languages that manage memory automatically (e.g., garbage collection in languages like Java or Python). Understanding how memory management works in C is essential for writing efficient and error-free programs.
Software Development
Questions
07 Jan, 2025
Top Mostly Asked C Interview Questions and Answers
A
segmentation fault
(often referred to as a
segfault
) in C occurs when a program attempts to access a memory location that it is not allowed to access. This results in a runtime error that usually causes the program to crash. Segmentation faults are typically caused by improper memory access, such as reading from or writing to invalid memory locations.
Technology
Questions
26 Dec, 2024
Most Frequently asked c Interview Questions (2024)
C
and
C++
are both widely used programming languages, but they have key differences, mainly in terms of their design philosophies, features, and capabilities. Below is a detailed comparison to help you understand the key differences between them.