Ordering numbers

Pages: 12
Aug 11, 2014 at 8:47pm
Hi Dexter!
Aug 15, 2014 at 3:43am
Can you explain what each part of you code does?
Aug 15, 2014 at 3:44am
And we are here to guide you, not give you the answer.
Aug 15, 2014 at 3:54am
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 Aug 16, 2014 at 1:13am
Topic archived. No new replies allowed.
Pages: 12