Complete the code to include the standard input-output header.
#include [1]
instead of for input-output functions.The #include <stdio.h> directive includes the standard input-output library needed for functions like printf.
Complete the code to define the main function that returns an integer.
[1] main() { return 0; }
void as the return type for main.float or char for main.The main function should return an int to indicate the program's exit status.
Fix the error in the code by completing the statement to print "Hello, World!".
#include <stdio.h> int main() { [1]("Hello, World!\n"); return 0; }
print or println which are not valid in C.cout which is from C++.The correct function to print formatted output in C is printf.
Fill both blanks to declare a variable and assign it a value inside main.
int main() {
[1] [2] = 10;
return 0;
}float when the value is an integer.number which is not declared.To declare an integer variable named count, use int count = 10;.
Fill all three blanks to complete a simple C program that prints a variable's value.
#include <stdio.h> [1] main() { [2] [3] = 5; printf("Value: %d\n", [3]); return 0; }
void as return type for main.The main function returns int. Declare an integer variable num and print it.