I'm sure it's something small but I keep getting an initialize error about how I keep trying to use it before it's initialized.
#include <iostream>
using namespace std;
int main()
{
int* ordered;
ordered[0] = 5;
cout << ordered[0];
return 0;
}
Bonus question, can I use *ordered
to access the beginning address and loop through the array using *ordered++
?