i
Univlabs
Filter interviews by
I applied via campus placement at National Institute of Technology, (NIT), Sikkim and was interviewed in May 2023. There were 3 interview rounds.
Macros in C are preprocessor directives that define constants or perform repetitive tasks.
Macros are defined using #define directive.
They are used to define constants like #define PI 3.14159.
Macros can also be used to create code snippets that can be reused multiple times.
For example, #define MAX(a, b) ((a) > (b) ? (a) : (b)) defines a macro to find maximum of two numbers.
Enum is used to define a set of named constants while struct is used to define a collection of variables of different data types.
Enum is used to define a set of named constants, while struct is used to define a collection of variables of different data types.
Enum values are typically integers, while struct members can be of any data type.
Enums are used when you have a fixed set of values that won't change, while struct...
Deadlock is a situation in which two or more competing actions are each waiting for the other to finish, preventing any of them from completing.
Occurs in multitasking environments
Caused by resource contention
Can be resolved using techniques like deadlock prevention, deadlock avoidance, and deadlock detection
Example: Process A holds Resource X and waits for Resource Y, while Process B holds Resource Y and waits for Reso
Different function call methods include pass by value, pass by reference, and pass by pointer.
Pass by value: Copies the value of the actual parameter into the formal parameter of the function.
Pass by reference: Passes a reference to the memory location of the actual parameter.
Pass by pointer: Passes the memory address of the actual parameter.
Moral motivation is driven by personal values and beliefs, while monetary motivation is driven by financial incentives.
Moral motivation is based on doing what is right or ethical, regardless of financial gain.
Monetary motivation involves being driven by financial rewards or incentives.
Some individuals may prioritize moral motivation over monetary motivation, while others may prioritize financial gain.
Examples: A person...
Top trending discussions
based on 3 reviews
Rating in categories
Senior Design Engineer
6
salaries
| ₹5.8 L/yr - ₹16 L/yr |
Senior Mechanical Design Engineer
6
salaries
| ₹10 L/yr - ₹12 L/yr |
Design Engineer
4
salaries
| ₹3.6 L/yr - ₹9.1 L/yr |
HR Manager
4
salaries
| ₹5 L/yr - ₹8 L/yr |
Hardware Design Engineer
4
salaries
| ₹4.3 L/yr - ₹6.7 L/yr |
DRJ & CO
Biocon Limited
Syngene International
Piramal Group