Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible to transfer the input parameter from function 1 to function 2 without passing it directly as an input to function 2. This can be done by using a global variable or by returning the value from function 1 and then passing it as an input parameter to function 2. However, it is generally considered better programming practice to avoid global variables and to pass input parameters directly to functions, as it makes the code more explicit and easier to understand.