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
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
You know the right answer?
Write a function int fromoctaltodecimal (int* octal, int n) that given an array octal of n integers,...
Questions
question
Mathematics, 07.12.2020 23:20
question
English, 07.12.2020 23:20
Questions on the website: 13722360