Question: I have a command in discord.py where I would like to have, for example, `@has_permissions(administrator=True)`, but I want to be able to run the command with, say, a custom check that checks if it is a certain user, so that the user/role/whatever can run the command, regardless of whether or not they have the permission. So I guess my question is this: is there a way to allow a command if a user passes at least 1 check? Thank you in advance!

Answer: 
You are not measuring the size of an array, but the size of the sum of two `long long`s. I.e.,

```
sizeof(whatever[0] + whatever[2])

```

is essentially the same as

```
sizeof(long long)

```

which you point out is 8.
You declared an array with one element. So the valid index for this array is 0. As a result using the value equal to 2 as an index value in this expression

```
whatever[2] = 10;

```

results in accessing memory beyond the array that invokes undefined behavior.

As for the operator `sizeof` then it does not evaluate its operand. It only determines the type of its operand and returns the size of an object of this type.

So this expression

```
sizeof(whatever[0] + whatever[2])

```

where you may use an invalid index for the array `whatever` is equivalent to the expression

```
sizeof( long long )

```

From the C++ 14 Standard (5.3.3 Sizeof)

> 
> 1 The sizeof operator yields the number of bytes in the object
> representation of its operand. **The operand is either an expression,
> which is an unevaluated operand** (Clause 5), or a parenthesized
> type-id.
> 
> 
>