Filter interviews by
Speed, logical questions
posted on 9 Apr 2024
Jk and technical programming questions
Static, global, and local variables are different types of variables in programming with different scopes and lifetimes.
Static variables have a fixed memory location and retain their value between function calls.
Global variables are accessible throughout the entire program.
Local variables are only accessible within the block of code where they are declared.
Call by value passes a copy of the variable, while call by reference passes the actual variable itself.
Call by value passes a copy of the variable, so changes made to the parameter inside the function do not affect the original variable.
Call by reference passes the actual variable itself, so changes made to the parameter inside the function affect the original variable.
In call by value, the function receives a copy of ...
Storage classes in C define the scope and lifetime of variables.
Storage classes include auto, register, static, extern, and typedef.
Auto variables are local to the block and have automatic storage duration.
Register variables are stored in CPU registers for faster access.
Static variables retain their value between function calls.
Extern variables are declared outside any function and can be accessed by other files.
Typede
posted on 9 Apr 2024
Jk and technical programming questions
Static, global, and local variables are different types of variables in programming with different scopes and lifetimes.
Static variables have a fixed memory location and retain their value between function calls.
Global variables are accessible throughout the entire program.
Local variables are only accessible within the block of code where they are declared.
Call by value passes a copy of the variable, while call by reference passes the actual variable itself.
Call by value passes a copy of the variable, so changes made to the parameter inside the function do not affect the original variable.
Call by reference passes the actual variable itself, so changes made to the parameter inside the function affect the original variable.
In call by value, the function receives a copy of ...
Storage classes in C define the scope and lifetime of variables.
Storage classes include auto, register, static, extern, and typedef.
Auto variables are local to the block and have automatic storage duration.
Register variables are stored in CPU registers for faster access.
Static variables retain their value between function calls.
Extern variables are declared outside any function and can be accessed by other files.
Typede
posted on 1 Jan 2022
Project Accountant
3
salaries
| ₹3.6 L/yr - ₹4.2 L/yr |
Suzlon Group
Adani Power
NTPC
Adani Group