Pregunta de entrevista de HP Inc.

Difference between global local static variable

Respuesta de la entrevista

Anónimo

9 abr 2023

Global variable can be accessed i.e, has scope throughout program and life time is till program terminated. local variable has scope within function and lifetime till function call returns . static variable has scope within function but lifetime till program terminates