Because you haven't initialized the variable a. C is very explicit about it.
i know. if i don't initialise the array, it assign random values? because 0 and 13 doesn't change if i run code again
Those are garbage values. Just because they didn't change for your machine doesn't mean int a[5]; will have 13 and 0
Don't worry much about garbage values, and don't ever rely on them
Обсуждают сегодня