Govt. Exams
Entrance Exams
arr + 1 points to the second element, so *(arr + 1) dereferences it to give 2.
NULL is a macro (not a keyword) typically defined as (void *)0, and can be used interchangeably with 0 for pointer assignments.
Angle brackets search standard include directories, while quotes search the current directory first, then standard directories.
All three are valid ways to work with strings in C, though they differ in memory allocation and mutability.
On most systems, sizeof(float) is 4 bytes. Though technically implementation-defined, 4 bytes is standard.
The correct syntax uses #define followed by macro name and parameters, with the replacement text in parentheses.
'extern' declares a variable or function that is defined in another translation unit (source file).
5 (binary 101) & 3 (binary 011) = 001 (binary) = 1. Bitwise AND operates on each bit position.
C uses pointers for pass-by-reference. The dereference operator '*var' accesses the actual variable. C++ supports references (&var), but C does not.
'break' terminates the loop entirely, while 'continue' skips the current iteration and moves to the next one.