Question 96
Which C storage class requests the compiler to allocate the variable in CPU registers rather than RAM for faster access?
The 'register' keyword requests compiler storage in high-speed CPU registers if available.
Which C storage class requests the compiler to allocate the variable in CPU registers rather than RAM for faster access?
The 'register' keyword requests compiler storage in high-speed CPU registers if available.
Which storage class keyword in C is used to declare a global variable or function defined in another source file?
The 'extern' keyword declares a variable/function that has external linkage, defined in another source compilation unit.
In C++ and Python, what are 'Default Arguments' in function definitions?
Default parameters assign preset values to parameters in function signature when omitted by caller.
What is an anonymous, single-expression function defined using the '$\lambda' keyword$ in Python?
$Python lambdas create small anonymous function objects (e.g., \lambda x: x + 1).$
What are the default access specifiers for members of a 'class' and a 'struct' in C++?
In C++, the only difference between class and struct is default member access: class defaults to private, struct defaults to public.