Answer:
int withinArray(int * intArray, int size, int * ptr) {
if(ptr == NULL) // if ptr == NULL return 0
return 0;
// if end of intArr is reached
if(size == 0)
return 0; // element not found
else
{
if(*(intArray+size-1) == *(ptr)) // check if (size-1)th element is equal to ptr
return 1; // return 1
return withinArray(intArray, size-1,ptr); // recursively call the function with size-1 elements
}
}
Explanation:
Above is the completion of the program.
Answer:
Security risk associated with sharing a printer are
- Printer Attacks
- Theft
- Breach of data
- Vulnerable Network
Explanation:
Printer Attacks
A network printer can be used for a DDoS attack.As printer are not very secured and are a weak link in network these can be easily exploited by the hackers for any kind of malicious activities and even lanching a DDoS attack.
DDoS attack is denial of service attack in which network is flooded with malicious traffic which cause it to choke and make it inaccessible for users.
Theft
Physical theft of document can be an issue.Anyone can just took printed pages from printer tray by any one.
Breach of Data
The documents which are printed are usually stored in printer cache for some time which can be accessed by any one connected to the network. Any document containing confidential information which are printed on network printer can fall in wrong hands.
Vulnerable Network
As mentioned a single unsecured network printer can pose great threat to entire network as it can provide a way into the network.
Answer:
RAX = 333000h (16 bits with preceding zeros removed)
RDX = 20h (also 16 bits with preceding zeros removed)
Explanation:
The "div" opcode in the assembly language source code is used to divide operands. It accepts a divisor ( the denominator) and divides the content of the AX register. The result is saved in the AX register while the remainder (if any) is saved in the DX register. If the DX register holds any data, the data is replaced with the divisor remnant.
The code above divides the content of the RAX register with the divisor variable and saves the result and remainder in the RAX and RDX respectively.
I think the correct answer would be that it facilitates the transport of data. It is a very useful tool in the transport and storage of data. XML, also, uses human language rather than computer language so it can be used easily by new users.
Answer:
Given that: Design scenario - page 197 has a continuation of the chapter 1 design scenario for ElectroMyCycle
Explanation:
See attached image