Question d’entretien chez HP Inc.

Difference between global local static variable

Réponse à la question d'entretien

Utilisateur anonyme

9 avr. 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