In C, which function is used to read a string from input with space handling?
What is the purpose of the 'static' keyword when used with a variable inside a function?
Which of the following correctly represents a structure declaration in C?
What does the 'volatile' keyword indicate in C?
Consider: int *ptr; int arr[] = {1,2,3}; ptr = arr; What is ptr[1]?
Advertisement
What will be the final value of x: int x = 5; x += 3 * 2; printf("%d", x);
Which of the following operators has the highest precedence in C?
Which of the following is true about the 'break' statement in C?
What will be printed: int i = 0; while(i < 3) { printf("%d ", i); i++; }
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?
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?