Ordering numbers

Pages: 12
Hi Dexter!
Can you explain what each part of you code does?
And we are here to guide you, not give you the answer.
In the first three lines of code:
1
2
3
int arr[4];                        //this is you're array
int t;                               //ignore
int ar[4]{35,11,36,47};   //you're creating a new array 

There are lots of problems in this.
1: You are creating two arrays, named int arr and int ar.
2: You need an = between int ar[4] and {35,11,36,47};, like this:
int ar[4]={35,11,36,47};
3: If you only want to make one array, then do this:
1
2
int arr[4]={35,11,36,47};
int t;

or:
1
2
3
int arr[4];
int t;
arr[4]={35,11,36,47};
Last edited on
Topic archived. No new replies allowed.
Pages: 12