Question

when you declare a character array all the elements of the array are automatically set to...

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?

Homework Answers

Answer #1

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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write the following program in MIPS: a) declare an array A of the following numbers: 3,...
Write the following program in MIPS: a) declare an array A of the following numbers: 3, 5, 8, 10, 12, 2, 76, 43, 90, 44 b) declare a variable called size which stores the number of element in array A, that is 10. c) write a subroutine to search for a number stored in an array and return true or false. In C++ the subroutine is as follows: search(array, size, number_To_Search) e.g. search(A, 10, 12) The subroutine should return 0...
USE PYTHON LANGUAGE PLEASE FOCUS YOU SHOULD ENTER AN ARRAY AND THEN THE PROGRAM GIVE OUTPUT(...
USE PYTHON LANGUAGE PLEASE FOCUS YOU SHOULD ENTER AN ARRAY AND THEN THE PROGRAM GIVE OUTPUT( TRUE/ FALSE) QUIZ 8 Array Challenge Have the function ArrayChallenge(arr) take the array of numbers stored in arr and return the string true if any two numbers can be multiplied so that the answer is greater than double the sum of all the elements in the array. If not, return the string false. For example: if arr is [2, 5, 6, -6, 16, 2,...
What do you mean a sparsity matrix? Select one: a. None of the above b. All...
What do you mean a sparsity matrix? Select one: a. None of the above b. All of the above c. Representation of non zero elements d. Representation of null element The maximum number of elements in an array is one number higher than the index. Select one: True False The term data structure is used to denote a particular way of organizing data for particular types of operation. Select one: True False In which situation do you use a sparse...
Given a large array of several million elements of type 'double', you are asked to sort...
Given a large array of several million elements of type 'double', you are asked to sort them in ascending order using an algorithm of your choice. You choose selection sort. Why is this a poor choice? Group of answer choices Selection sort can only sort elements of type 'int' Selection sort requires 3x the memory of other sort algorithms Selection sort can only work on an array with an odd number of elements Selection sort will be prohibitively inefficient for...
Add a plugin to the real jQuery library so that when you pass an array of...
Add a plugin to the real jQuery library so that when you pass an array of elements to it, the function can move the elements forward and backward repeatedly. Then test your plugin by sending an array of images to it.
Create a function that returns a boolean value if all-elements are not odd or even. Using...
Create a function that returns a boolean value if all-elements are not odd or even. Using Dr. Racket and the How to Design a Function (HtDF ) recipe, create a function that will return the following check-expect: (check-expect (all-elements? even? (list 1 2 3) false) (check-expect (all-elements? even? (list 2 4 6) true) (check-expect (all-elements? odd? (list 1 3 5) true) Can you find an element in the list where the predicate fails (return false)?
Why is the test size equal to the false discovery rate only when the null hypothesis...
Why is the test size equal to the false discovery rate only when the null hypothesis is correct? I may be misunderstanding what test size means. Also, is the false discover rate just the number of type 1 errors divided by the total number of rejected null hypotheses? If a set of rejected null hypotheses was rejected under a test of a 5% size, does this mean that out of all these hypotheses only 5% of them are actually true?...
Consider an axiomatic system that consists of elements in a set S and a set P...
Consider an axiomatic system that consists of elements in a set S and a set P of pairings of elements (a, b) that satisfy the following axioms: A1 If (a, b) is in P, then (b, a) is not in P. A2 If (a, b) is in P and (b, c) is in P, then (a, c) is in P. Given two models of the system, answer the questions below. M1: S= {1, 2, 3, 4}, P= {(1, 2), (2,...
1. Use the roster method to describe the elements of the following set. x∈ℤ||x−3|<12 and x...
1. Use the roster method to describe the elements of the following set. x∈ℤ||x−3|<12 and x is a multiple of 3 2. Use the roster method to describe the elements of the following set. {n∈ℕ∣∣∣1n+6⩾6272 and n is a multiple of 5} 3. Determine the cardinality of the following sets. {x∈ℤ|−4⩽x⩽3}: {x∈ℕ|−4⩽x⩽3}: 4. Evaluate the following expressions. [Hint: start by factoring the polynomial.] ∣∣{x∈ℚ∣∣18x3+69x2+56x=0}∣∣= ∣∣{x∈(0,∞)∣∣18x3+69x2+56x=0}∣∣= ∣∣{x∈ℤ∣∣18x3+69x2+56x=0}∣∣= 5.  Evaluate the following expressions. [Hint: start by factoring the polynomial.] ∣∣{x∈ℝ∣∣x4+11x2+28=0}∣∣= ∣∣{x∈ℚ∣∣x4+11x2+28=0}∣∣= ∣∣{x∈ℕ∣∣x4+11x2+28=0}∣∣= 6....
The text's array-based queue implementations use the fixed-front approach. Group of answer choices True False Recall...
The text's array-based queue implementations use the fixed-front approach. Group of answer choices True False Recall that within the LinkedQueue the front and rear variables are of type LLNode<T> holding references to the front and rear nodes of the underlying linked list, and the numElements variable is an int and holds the current size of the queue. Which of the following code sequences could be used to correctly implement the isEmpty operation? Group of answer choices return (rear != null);...