when you declare a character array all the elements of the array are automatically set to NULL when you use the MBED complier is thats true or false and why?
When we use the MBED compiler the above statement is false.
An online compiler does not access your computer's local memory, all the runnning process takes place on a remote machine. If we use IDE's in the computer it can allocate dynamically memmory to the array and it can set value as null.But in online IDE's it uses the micro controller memmory, it is a low memmory and it has minimum memmory requirements. So it uses the existed memmory again and again by updating the memmory or override the memmory space.
Dynamic memmory allocation is take place in heap memmory and static memmory allocation is take place in stack memmory.But in MBED there is no such memmory systems it only have micro controller memmory. So it cannot set the values of array as null.It only override or update the memmory of its own again and again.
Get Answers For Free
Most questions answered within 1 hours.