challenge.c
memory-and-numbers.md
C
Memory and numbers (C, C++, Rust)
Difficulty 2/3
1
#
include
<stdint.h>
2
3
int32_t
order_total(
int32_t
price_cents,
int32_t
quantity) {
4
int32_t
total = price_cents * quantity;
/* can wrap around */
5
return
total;
6
}