I'm taking some advanced level tests and there are some questions that ask you to give the result of a function would give under some circumstances.
1. double tstFXN() {
double result;
double N = 0x003F;
int x = 5;
result = x + N;
return result;
}
What is the value of result:? A) B) C) D)
//This is not an actual question from the test but gives the jist of what type of question they ask.
The problem I'm having is how can I understand what the hex value is by looking at it, what calculations do I need to do to get the result of the hex value. I know it's base 16 for hex values but how do I apply this to get the value? I'm taking the test without any computer compiler support so it's all in my head calcs.
Any help appreciated.
BTW, this exam is for the MCSD and not school work.