All of the above. If that’s not an option if it’s multiple choice let me know. Everyone uses web browser/the internet no matter the career.
Answer:
The Arduino boards can be programmed in assembly. All you need is an ICSP Cable (In Circuit Serial Programmer) and the AVR toolchain (free from ATMEL) to write to the board. You then get the advantage of on board debugging.
As you suggested, you can just slap an ATMEL chip on a breadboard and go to town.
Explanation: cause i said so
Answer:
"The value of the variable will remain the same which is already have when the sub-processor is called".
Explanation:
The above question said that:-
void fun(int a)
{
a=a+1;
}
void main()
{
int a=5;
fun(a);
}
//what will be the value of a in the main function after the fun function is excuted.
- Then the answer is: the value of a will be 5 in the main function.
- It is because when the fun function is called, then a variable that is defined in the fun function is a local variable for fun function. That scope after the fun function is null.
- The a variable inside the fun function is a different variable and the main function a variable is also a different variable.
- So when the user prints the value of a variable inside the fun function, it will give the result as 6.
- But when he prints the value of a variable inside the main function, then it will give the value as 5.
A do while loop in this situation is actually stupid. A for loop or while loop will suit this purpose better, since you do not need to make sure it executes at least once for the given condition. Do while loops are good for situations where the condition may not be true initially, and you'd like to guarantee execution at least once. E.g circular linked list node counter.