Introduction to C language Flashcards
step-by-step procedure for solving a problem or performing a task.
algorithm
What is the role of #include <stdio.h> in C?</stdio.h>
It includes the standard input/output library.
What does the “puts” function do?
It prints a string to the screen.
What does int main(void) represent?
The main function that returns an integer and takes no parameters.
What does return 0; indicate in main
The program completed successfully.
What is a function prototype?
A declaration of a function’s return type, name, and parameters
What is a preprocessor directive?
A command that performs text substitution before compilation.
What is the purpose of void in int main(void)
It indicates that the function takes no parameters.
What does the {} denote in a C function?
The beginning and end of the function body.
What is the significance of the semicolon in C?
It marks the end of a statement.