Answer:
Explanation:
#include <stdio.h>
int main()
{
int arr[5][5], trans [5][5], i, j;
// Entering elements to the matrix
printf("\nEnter matrix elements:\n");
for (i = 0; i < 6; ++i)
for (j = 0; j < 6; ++j) {
printf("Enter element a%d%d: ", i + 1, j + 1);
scanf("%d", &arr[i][j]);
}
printf("\nThe given input matrix is: \n");
for (i = 0; i < 6; ++i)
for (j = 0; j < 6; ++j) {
printf("%d ", arr[i][j]);
if (j == 5)
printf("\n");
}
// Transpose
for (i = 0; i < 6; ++i)
for (j = 0; j < 6; ++j) {
trans[j][i] = a[i][j];
}
printf("\nThe output transpose of the matrix:\n");
for (i = 0; i < 6; ++i)
for (j = 0; j < 6; ++j) {
printf("%d ", trans[i][j]);
if (j == 5)
printf("\n");
}
return 0;
}
Answer: Prayer with focal point
Explanation:
<span>Schema classes define all objects that AD can handle.</span>
Answer:
Interrupt (INT) helps operating system to stop work on one process and start work on other process using interrupt signals.
Explanation:
Purpose of interrupts:
• Interrupts are useful when an I/O device needs to be serviced only occasionally at low data transfer rate.
• For example, when a peripheral requires the attention of the processor to perform an I/ O operation.
A trap:
• also known as an exception or a fault, is typically a type of synchronous interrupt caused by an exceptional condition
• is a software-generated interrupt.
• For example it's caused by division by zero or invalid memory access.
Can traps be generated intentionally by a user program? Yes.
If so, for what purpose?
• the usual way to invoke a kernel routine (a system call) because those run with a higher priority than user code.
• Handling is synchronous, so the user code is suspended and continues afterwards.
• In a sense they are active - most of the time, the code expects the trap.