Complete the code to print "Hello, World!" in C.
#include <stdio.h> int main() { [1]("Hello, World!\n"); return 0; }
The printf function is used in C to print text to the screen.
Complete the code to declare an integer variable named 'age' in C.
[1] age = 25;
In C, int is used to declare integer variables.
Fix the error in the code to correctly declare a character variable named 'letter'.
char [1] = 'A';
Variable names cannot start with a number. 'letter' is a valid name.
Fill both blanks to create a for loop that counts from 0 to 4 in C.
for (int i = [1]; i [2] 5; i++) { printf("%d\n", i); }
The loop starts at 0 and continues while i is less than 5.
Fill all three blanks to declare and initialize an array of 3 integers in C.
int [1][[2]] = [3];
This declares an integer array named 'numbers' with 3 elements initialized to 1, 2, and 3.
