- main()
- -->convert()
- ----->dectobin()
- -------->dectobin()
- ------------>dectobin()
- ---------------->dectobin()
- find the LSB;
- return LSB as a string; (1 in this case)
- ------------> find the next bit (0 in this case)
- add the string from the dectobin call to the new bit we found
- (0 + 1) -> 01
- return this new string;
- --------> find the next bit (1 in this case)
- add the string from the dectobin call to the new bit we found
- (1 + 01) -> 101
- return this new string;
- ----> find the next bit (0 in this case)
- add the string from the dectobin call to the new bit we found
- (0 + 101) -> 0101
- return this new string;
- <back to convert>
- convert now sees dectobin return "0101"

By: awiejga | Date: Nov 25 2007 00:57 | Format: None | Expires: never | Size: 852 B | Hits: 1263
Latest pastes
1 hours ago
1 hours ago
1 hours ago
3 hours ago
6 hours ago