Ok 1. ur not supposed to take a motherboard out of a computer and 2. a mother board technically controls everything or what u do in ur computer
Number one is c shouldn’t have to explain pretty simple
The BGA is soldered to the motherboard along with the CPU.
A ball grid array (BGA) is a type of surface-mount packaging (a chip carrier) used for integrated circuits. BGA packages are used to permanently mount devices such as microprocessors.
In the C programming language, you can't determine the array size from the parameter, so you have to pass it in as an extra parameter. The solution could be:
#include <stdio.h>
void swaparrayends(int arr[], int nrElements)
{
int temp = arr[0];
arr[0] = arr[nrElements - 1];
arr[nrElements - 1] = temp;
}
void main()
{
int i;
int myArray[] = { 1,2,3,4,5 };
int nrElements = sizeof(myArray) / sizeof(myArray[0]);
swaparrayends(myArray, nrElements);
for (i = 0; i < nrElements; i++)
{
printf("%d ", myArray[i]);
}
getchar();
}
In higher languages like C# it becomes much simpler:
static void Main(string[] args)
{
int[] myArray = {1, 2, 3, 4, 5};
swaparrayends(myArray);
foreach (var el in myArray)
{
Console.Write(el + " ");
}
Console.ReadLine();
}
static void swaparrayends(int[] arr)
{
int temp = arr[0];
arr[0] = arr.Last();
arr[arr.Length - 1] = temp;
}
The ConputergefvkdevkdegkedgkgxkgwxkzgkfzsjsfzjzsdjszfjwzfhwfwHkdKGWsqkgddaqhkdqakgQdgkQGgqzdgzkqdhqkfzqkhqczljaxhlcwzhlzchaxlhwxgkwdgkwdwkzgzmgzgkwdgmwzdgzwkdamxadmhfzahm