Govt Exams
2D array syntax is int arr[rows][columns]. So int arr[3][4] creates 3 rows and 4 columns.
The correct syntax for a pointer to int is 'int *ptr;' or 'int* ptr;'. & is a C++ reference, not used in C pointers.
\t is the escape sequence for horizontal tab. \n is newline, \h and \s are not valid escape sequences.
'long long' is guaranteed to be at least 64 bits (8 bytes) as per C99 standard.
x++ is post-increment. The current value (10) is printed first, then x is incremented to 11. So output is 10.
C does not have a built-in 'string' data type. Strings are arrays of characters. int, double, and char are valid primitive data types.
Integer division truncates the result. 5/2 = 2 (not 2.5) because both operands are integers.
The correct syntax is 'int *ptr;' where * indicates ptr is a pointer to int.
malloc() and other dynamic memory allocation functions are declared in <stdlib.h>.
%c format specifier prints the character representation of ASCII value 65, which is 'A'.