Appends integer b to the end of array a and returns the resulting array c.