Computers and Technology, 23.04.2020 15:45 ryan1kk
Write the definition of a function minMax that has five parameters. The first three parameters are integers. The last two are set by the function to the largest and smallest of the values of the first three parameters. The function does not return a value.
The function can be used as follows:
int a=31, b=5, c=19, big, small;
minMax(a, b,c,&big,&small);
/* big is now 31 */
/* small is now 5 */
And this is what I have:
void minMax(int x, int y, int z, int* big, int* small) {
if ((a > b) && (a > c)) {
a = big;
}
else if ((b > a) && (b > c)) {
b = big;
}
else if ((c > a) && (c > b)) {
c = big;
}
if ((a < b) && (a < c)) {
a = small;
}
else if ((b < a) && (b < c)) {
b = small;
}
else if ((c < a) && (c < b)) {
c = small;
}
}
Answers: 1
Computers and Technology, 22.06.2019 03:00
Which action describes an aspect of technological design?
Answers: 1
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
Write the definition of a function minMax that has five parameters. The first three parameters are i...
Biology, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
Computers and Technology, 14.07.2019 10:30
Chemistry, 14.07.2019 10:30
History, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
Computers and Technology, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
French, 14.07.2019 10:30
Mathematics, 14.07.2019 10:30
English, 14.07.2019 10:30