What is the correct syntax to free dynamically allocated memory in C?
What does the following code do: int *ptr = NULL;
What is the output of: printf("%f", 25);
Which of the following correctly declares a 2D array in C?
What does the sizeof() operator return in C?
Advertisement
What is the difference between getchar() and scanf("%c", &ch); in C?
What will be the output: int a = 2, b = 3; printf("%d", a * b + a / b);
What will be the memory size occupied by: int arr[5][3];?
What does the modulus operator (%) return when applied to negative numbers?
Which of the following statements about pointers is correct?
What is the correct way to declare a constant in C?
Which loop construct in C guarantees execution at least once?
What is the scope of a variable declared inside a block?
How many times will the following loop execute: for(int i=0; i<5; i++) { if(i==3) break; }
Which of the following is a correct way to initialize a pointer to NULL?
What will be the value of x after executing: int x = 5; x += 3; x *= 2;
Which of the following correctly describes the relationship between arrays and pointers in C?
What is the output of the expression: 310 * 3 in C?
Which preprocessor directive is used to include a custom header file?
What is the difference between a function declaration and a function definition in C?