sending multiple codes to the consumer products using uno and ir transmitter

By the way, you can NOT use the array initialization syntax anywhere EXCEPT where you declare and initialize the array in one statement.