Introduction to C language Flashcards

1
Q

step-by-step procedure for solving a problem or performing a task.

A

algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of #include <stdio.h> in C?</stdio.h>

A

It includes the standard input/output library.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the “puts” function do?

A

It prints a string to the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does int main(void) represent?

A

The main function that returns an integer and takes no parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does return 0; indicate in main

A

The program completed successfully.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a function prototype?

A

A declaration of a function’s return type, name, and parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a preprocessor directive?

A

A command that performs text substitution before compilation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of void in int main(void)

A

It indicates that the function takes no parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the {} denote in a C function?

A

The beginning and end of the function body.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the significance of the semicolon in C?

A

It marks the end of a statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly