You've answered 0 of 46 questions correctly. (Clear)

Question #44 Difficulty: 2

According to the Solidity 0.8.17 compiler (200 optimization runs)

    // Which constant variable is invalid - MAX_A, MAX_B, MAX_C, MAX_D, or MAX_E? 

pragma solidity ^0.8.17;

contract C {

  uint256 constant MAX_A = 115792089237316195423570985008687907853269984665640564039457584007913129639935;
  uint256 constant MAX_B = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
  uint256 constant MAX_C = uint256(-1);
  uint256 constant MAX_D = 2**256 - 1;
  uint256 constant MAX_E = type(uint256).max;
}

Answer:

Problems? View a hint or try another question.

I give up, show me the answer (make 3 more attempts first).

Mode : Training

You are currently in training mode, answering random questions. Why not Start a new quiz? Then you can boast about your score, and invite your friends.

Contribute

Create your own!