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 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
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: 13722361