Happy Coding

Push function on an array

In line 12 of the example program, what is the purpose of c. y++ ?

Can you link to the example you’re talking about?

Generally, y++ increases the variable y by 1. Try taking it out and see what happens!