1) What is the decimal-base value of the following octal/hex constants? O 040 O 0X40 o OXFF o OXCAB 2) Write a C++ program that calculates sum of the first two values above using the twos-complement algorithm o int Prod (int X, int Y); int Result = Prod( (int)042, (int)0X42); return Result; //function prototype

icon
Related questions
Question
1) What is the decimal-base value of the following octal/hex
constants?
O 040
O 0X40
o OXFF
O OXCAB
2) Write a C++ program that calculates sum of the first two values
above using the twos-complement algorithm
1/25/2023
//function prototype
oint Prod(int X, int Y);
int Result = Prod( (int)042, (int)0X42);
return Result;
ned with CamScanner
Transcribed Image Text:1) What is the decimal-base value of the following octal/hex constants? O 040 O 0X40 o OXFF O OXCAB 2) Write a C++ program that calculates sum of the first two values above using the twos-complement algorithm 1/25/2023 //function prototype oint Prod(int X, int Y); int Result = Prod( (int)042, (int)0X42); return Result; ned with CamScanner
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer