C programming

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

C programming

2,790件の閲覧回数
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,772件の閲覧回数
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 件の賞賛
返信