Govt Exams
#define is a preprocessor directive used to define symbolic constants (macros) and performs text substitution before compilation.
The arrow operator (->) is used to access structure members through a pointer. The dot operator (.) is used for direct access.
The break statement immediately terminates the loop and transfers control to the statement following the loop.
In C, if a function's return type is not explicitly specified, it defaults to int. However, modern C standards require explicit return type declaration.
Arrays in C are declared with square brackets containing the size, followed by initialization in curly braces. Option A is the correct syntax.
malloc() (memory allocation) allocates a block of memory dynamically during program execution and returns a pointer to it.
A pointer is a variable that stores the memory address of another variable. It is declared using the * symbol.
Parentheses () have the highest precedence among all operators in C. They are always evaluated first in any expression.
The strlen() function returns the length of a string as an int value, representing the number of characters.
Variable names in C must start with a letter or underscore, not a digit. _variable is valid. '2var' starts with digit, 'var-name' contains hyphen (invalid), 'var name' contains space (invalid).