Skip to content
RED SAG Skills
easyStudy question · answer published in Blockchain interview questions, so no pointssolidity

Reading a missing mapping key

What does this function return for an address that was never added?

mapping(address => uint256) public balances;

function balanceOf(address user) external view returns (uint256) {
    return balances[user];
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions