Answer:
int sum = 0;
for (int i = 1; i < 100; i += 2) {
sum += i * i;
}
printf("The sum of cubes is %d", sum);
/* Prints: The sum of cubes is 166650 */
Explanation:
If 1 should be excluded, let the for loop start at 3.
Answer:
What is the shortest sequence of MIPS instructions that extracts a field for the constant values of bits 7-21 (inclusive) from register $t0 and places it in the lower order portion of register $t3 (zero filled otherwise)? - sll$t0, $t3, 9# shift $t3 left by 9, store in $t0
srl $t0, $t0, 15# shift $t0 right by 15
Explanation:
The shortest sequence of MIPS instructions that extracts a field for the constant values of bits 7-21 (inclusive) from register $t0 and places it in the lower order portion of register $t3 (zero filled otherwise) is shown below:
sll$t0, $t3, 9# shift $t3 left by 9, store in $t0
srl $t0, $t0, 15# shift $t0 right by 15
<span>The manual assignment of an IP address to a
system is called static addressing. Since the assignment of IP has been entered
manually using ARP utility, the network administrators probably forgot to
remove the manually configured nodes with IP addresses. </span>