Message from C, C++ discussions

November 2019

— But basically i have a three functions, lets say function A,B, and C

— 

Function A is called in main and takes function B as a parameter , function B returns a structure , which Function A makes use of , but in order to create this structure, its needs to receive some data from function C, function C itself is passed as a function pointer to function B, and its called in function B, and its return value is stored in a local variable to function B

— So thats the scenario

— So lets say you can it like this functionA(FunctionB);

— If i am inputting data that is being asked in function B , at that point , function A is still live and active right?

Message permanent page

— It would be helpful to provide some code

— I want to post but alot of times people get distracted with all the problems and how ugly the code i write is , and dont actually answer my specific question lol

Message permanent page

— I guess answer is yes, active

— If you call a function from abother function, second needs to be finished for first to be finished. Staments are executed one after another

Message permanent page

— It wont be true for threads or async or stuff like that

— I have one function that calls a function and that function that it calls takes some user input, but lets say i am scanning for an Int but the user types in an Char , it some how calls another function that is called in the original function

Message permanent page

— Hello