subject

Write a function int fromoctaltodecimal (int* octal, int n) that given an array octal of n integers, all in the range 0 – 7, representing a number in octal representation, returns an integer corresponding to the number in decimal representation. examples: • for array 1 0 0 1 and n = 4, the function returns the integer 1 · 8 3 + 0 · 8 2 + 0 · 8 1 + 1 · 8 0 = 513. • for array 1 0 1 0 0 and n = 5, the function returns the integer 1 · 8 4 + 0 · 8 3 + 1 · 8 2 + 0 · 8 1 + 0 · 8 0 = 4096 + 64 = 4160. • for array 0 and n = 1, the function returns the integer 0 · 8 0 = 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
You know the right answer?
Write a function int fromoctaltodecimal (int* octal, int n) that given an array octal of n integers,...
Questions
Questions on the website: 13722360