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 console.
Complete the code to declare an integer variable named 'count' and assign it the value 10.
int [1] = 10;
The variable name should be 'count' as specified.
Fix the error in the code to correctly compare if 'a' is greater than 'b'.
if (a [1] b) { printf("a is greater\n"); }
The '>' operator checks if 'a' is greater than 'b'.
Fill both blanks to create a for loop that counts from 0 to 4.
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 a function named 'add' that takes two integers and returns their sum.
int [1](int [2], int [3]) { return a + b; }
The function name is 'add' and parameters are 'a' and 'b'.
