C programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C programming

1,749 Views
NagamalleswaraRao
Contributor II

Why default values for auto and register are garbage value and why it is zero for static and extern in C programming?

0 Kudos
1 Reply

1,731 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you tell us the part number and the tools you are using? If you use DSC and CodeWarrior for MCU ver11.x, if you do not initialize a variable, the variable maybe any value. Therefore, you have to initialize the variable.

Hope it can help you

BR

Xiangjun Rong

0 Kudos