LG Soft India
Iccp Infotech Interview Questions and Answers
Q1. Difference between macro and functions
Macros are preprocessor directives that are replaced before compilation, while functions are blocks of code that are executed at runtime.
Macros are defined using #define directive, while functions are defined using function keyword.
Macros are expanded by the preprocessor before compilation, while functions are executed at runtime.
Macros can be used for simple text replacement, while functions can perform complex operations.
Macros do not have type checking, while functions hav...read more
Q2. Difference between exec and fork
exec replaces the current process with a new one, while fork creates a new process.
exec replaces the current process with a new one, while fork creates a new process
exec system call loads a new program into the current process's memory space and starts its execution
fork system call creates a new process by duplicating the existing process
Q3. Code to write list creation in dsa and so many
Implement list creation in data structures and algorithms
Use an array to store the elements of the list
Implement functions to add, remove, and access elements in the list
Consider using a linked list for more efficient insertion and deletion operations
Q4. Name the storage classes and explain the uses
Storage classes in C are auto, register, static, and extern. They control the scope and lifetime of variables.
Auto - default storage class for local variables, stored in stack memory
Register - stored in CPU registers for faster access
Static - retains its value between function calls, stored in data segment
Extern - used to access global variables across multiple files
Q5. What are storage classes in c
Storage classes in C define the scope and lifetime of variables.
There are four storage classes in C: auto, register, static, and extern.
Auto variables are local to the block they are declared in and are automatically destroyed when the block exits.
Register variables are stored in CPU registers for faster access.
Static variables retain their value between function calls.
Extern variables are declared outside of any function and can be accessed by multiple files.
Q6. overriding in oops concept
Top HR Questions asked in Iccp Infotech
Interview Process at Iccp Infotech
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month