googler
BAN USERAspiring IR Enginner
1) We pass by value when you don't want the value to be changed on client side which passes its value. Value is affected locally.
When we pass by reference, the value corresponding to the reference gets changed locally and globally(changed on client side too)
2) Yes, Stricture can be passed by Value and reference
3)No. Basically array value always have a reference to a object. And its is not a primitive datatype. So Array can only be passed by reference.
Note:Fixed-size arrays (size fixed at compile-time) can be part of a struct, and then they are passed by value.
I mean declarations like int foo[5]; inside a struct.
Credit: Anonymous
Answer
1) OS detects the bootup device through the BIOS - Basic Input Output System is a firmware or set of instructions that resides on a ROM chip. The system will now attempt to determine the sequence of devices to load based on the settings stored in the BIOS to start the operating system.
Checking the presence of bootable diskette in the corresponding drive, establishing connection to the drive or some of the possible ways to detect whether device is faulty or not
2)Device gets initialized or registered with the help of driver installed for the corresponding hardware device.
On several ways to implement, TRIE(digital tree) is one of the way.
- googler January 23, 2013Having a nested hashtable data structure where key as the letter and value as the possible routes.