Default values of int when not initialized in c. why do i get different outputs?

后端 未结 5 1873
余生分开走
余生分开走 2021-01-16 13:49

i was just trying to check the default value of int and char when not initialised in c. my problem is that i get two different outputs when i use clrscr() to clear the scree

5条回答
  •  一向
    一向 (楼主)
    2021-01-16 14:29

    In case of your code, you will get garbage values, but if the integer varibale was declared globally then its default value will be 0 for sure in C. I mentioned this because question's title was-"Default values of int when not initialized in c".

提交回复
热议问题