#include <iostream>
#include <string>
using namespace std;
void print_nb_of_items(const int nb_of_apple, const int& nb_of_pens)
{
cout << "Number of apples = " << nb_of_apple << endl;
cout << "Number of pens = " << nb_of_pens << " Address = 0x" << uppercase << hex << uintptr_t(&nb_of_pens) << endl;
cout << "Hex output in uppercase = " << uppercase << hex << 77 << endl;
}
/* The main function */
int main(int argc, char * argv[])
{
int nb_apple = 24;
int nb_pens = 65;
print_nb_of_items(nb_apple, nb_pens);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCgp2b2lkIHByaW50X25iX29mX2l0ZW1zKGNvbnN0IGludCBuYl9vZl9hcHBsZSwgY29uc3QgaW50JiBuYl9vZl9wZW5zKQp7CiAgICBjb3V0IDw8ICJOdW1iZXIgb2YgYXBwbGVzID0gIiA8PCBuYl9vZl9hcHBsZSA8PCBlbmRsOwogICAgY291dCA8PCAiTnVtYmVyIG9mIHBlbnMgPSAiIDw8IG5iX29mX3BlbnMgPDwgIiBBZGRyZXNzID0gMHgiIDw8IHVwcGVyY2FzZSA8PCBoZXggPDwgdWludHB0cl90KCZuYl9vZl9wZW5zKSA8PCBlbmRsOwogICAgY291dCA8PCAiSGV4IG91dHB1dCBpbiB1cHBlcmNhc2UgPSAiIDw8IHVwcGVyY2FzZSA8PCBoZXggPDwgNzcgPDwgZW5kbDsKfQoKLyogVGhlIG1haW4gZnVuY3Rpb24gKi8KCmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKQp7CiAgICBpbnQgbmJfYXBwbGUgPSAyNDsKICAgIGludCBuYl9wZW5zID0gNjU7CiAgICBwcmludF9uYl9vZl9pdGVtcyhuYl9hcHBsZSwgbmJfcGVucyk7CgogICAgcmV0dXJuIDA7Cn0=