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 'count' in C.
[1] count = 10;
In C, int is used to declare integer variables.
Fix the error in the code to correctly include the standard input/output header.
#include [1]
The correct way to include the standard input/output header in C is #include <stdio.h>.
Fill both blanks to declare a pointer to an integer and assign it the address of variable 'num'.
int num = 5; [1] *ptr; ptr = [2];
To declare a pointer to an integer, use int *ptr;. To assign it the address of 'num', use ptr = #.
Fill all three blanks to define a function named 'add' that takes two integers and returns their sum.
[1] add([2] a, [3] b) { return a + b; }
The function 'add' returns an integer and takes two integer parameters.