PIC MICROCONTROLLER
ARCHITECTURE OF 8085
|
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
for (i = 0x50; i != 0 ; i ____ ) for (j = 0x25; j != 0; j ____ );//How many loops will this program generate?
|
|
80
|
|
|
1250
|
|
|
2960
|
|
|
37
|
Explanation:
Detailed explanation-1: -1 Answer. 5 times the loop will execute.
Detailed explanation-2: -How many times while loop condition is tested in the following C code snippets, if i is initialized to 0 in both the cases? Explanation: None.
Detailed explanation-3: -Answer: The loop will be executed 2 times as the number is set to 2.
Detailed explanation-4: -There is no fixed answer to how many times the while loop is executed. The while loop is always executed when there is a carry bit from one position to another.
There is 1 question to complete.