Can the loop() function be used to call another function that is custom defined by the programmer?

Can the loop() function be used to call another function that is custom defined by the programmer?
A. Yes, it can call
B. No, it cannot call
C. Yes, it can call but only functions with no return values
D. Yes, it can call but only functions with return values
 
Answer: A
Explanation: In C/C++ Programming, a function can call any other function whether it be the main function or any other custom defined function. In the case of the Arduino, the setup() and the loop() functions are custom predefined functions that are a part of the Arduino programming language subsystem.
 

Tìm kiếm

Back
Top