C programming

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

C programming

2,774 次查看
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 项奖励
回复
1 回复

2,756 次查看
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 项奖励
回复