Step Into x64 Assembly · Module exam · Windows x64
Exam: The Receipt Printer
Walk an array of structs, call printf with mixed arguments and return a double.
- ~45 minto solve
- 3hints
- membersaccess
- x64 Assemblylanguage
Part of Step Into x64 Assembly. The full module exam, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
A shop till keeps its basket as an array of structs. Write the function that prints the receipt, one printf per item with an integer, a 32-bit integer and a double in the same call, and returns the total as a double. Variadic calls, struct offsets, floating-point registers and callee-saved registers all meet in one function. The harness checks that you gave back every register you borrowed.
In this module exam
- The brief
- What this exam tests
Missions
- Print the receipt, return the total