stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Basics of Functions in C Flashcards | StudBud
Explore
/
Basics of Functions in C
Basics of Functions in C
7 terms
·
StudBud Administration
·
7 plays
Going over basic concepts of using functions in the C programming language
Flashcards
7 cards
F
Practice quiz
P
Host live
L
Questions
7
Answers
1
Why would we use a function?
It allows for multiple calls of code without re-writing it
To make our code cleaner
Because we were told to do that
Easier referencing to methods we write
2
How can you define a function?
TYPE function(arguments){//code}
TYPE function{arguments} (//code)
TYPE (function)(arguments){//code}
f(x) = {//code}
3
Functions use less code than just writing it without a function
False
True
4
What is pre-initialization?
When you have a FILE type varaible to pass-through
When you declare the function before writing it's process
When you want to write the function before the main
When you use a function
5
How do we call pass-by references in functions?
function_name(TYPE *variable);
function_name(*variable);
function_name(TYPE & variable);
function_name(&variable)
6
Functions need an argument
True
False
7
When writing code in a function relating to a FILE * type, do we need to add an address in it's reference?
True
False