Call backs (True or False): A.) Your program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call a(), b(), and c(). (True/False) B.) Your program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call c() but cannot call a() or b(). (True/False)
2.) Call backs (True or False):
A.) Your
B.) Your program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call c() but cannot call a() or b(). (True/False)
A) Program has three functions defined: void a(), void b(), and void c(), followed by main() function. Your main() function is allowed to call a(), b(), and c()
- Since function void a(), void b(), and void c() is defined before main() function, It can be accessible in main function
- If you place the function definitions after main function then we must declare the functions before they're used by main()
- So Statement in A) is True
B) Program has three functions defined: void a(), void b(), and void c(), followed by your main() function. Your main() function is allowed to call c() but cannot call a() or b().
- Since function void a(), void b(), and void c() is defined before main() function, All of them can be accessible in main function
- main() can access all three functions(void a(), void b(), and void c()), not just c()
- So statement in B) is False
Step by step
Solved in 2 steps