Allocation of N variables on the stack is O(1) since it just moves the stack pointer by the total size of all variables.