This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

General queries

I am new to the embedded platform. I am using STM32 board and Keil micro vision5. I have a few basic doubts. I searched on the internet, but i couldn't find any useful stuff related to my doubts. First is related to array indexing in Keil. Will it start at 0 or 1? I feel it is 0. Isn't it? Second is related to while loop. In some examples, in the main function, one function is getting called and after that, they are using while(1){}. Why we are doing this? I know while(1) is an infinite loop. if you call a function inside this while loop, the function will be called continuously. That is understandable. Then why they are writing like that? what is the intention of writing like that?