Scope of variable in function | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Scope of variable in function

If I pass a pointer to a function (fun_1) in as an argument in another function (fun_2) so it can be used within the function (fun_2), are the variables in the first (fun_1) then local or within the scope of the function (fun_2) which called the function (fun_1)

7th Apr 2022, 10:53 PM
William Owens
William Owens - avatar
1 Respuesta
0
Jay Matthews Thank you, That's what I was thinking.
7th Apr 2022, 11:50 PM
William Owens
William Owens - avatar