In a microcontroller HAL, the init() function has two overloads:
init()
void init(int pin); void init(int* portPtr);
You must:
mode = 1
mode = 2
nullptr
Output rules:
init(int pin)
PIN <pin>
init(int* ptr)
PORT NULL
Important:You must use nullptr, not 0 or NULL, to ensure the pointer overload is selected.
0
NULL
Example 1
Input:
1 7
Output:
PIN 7
Example 2
2
Test Cases
Test Results
Input
Expected Output