when we use array code example Example 1: How to use an array var fruits=["orange","apple"]; Example 2: how to define array int array[N];