#include<iostream>
using namespace std;
int main()
{
double a;
double b;
cout<<"Address of a is: "<<&a<<endl;
cout<<"Address of b is: "<<&b;
}
output is: address of a is: 0x6ffe18 address of b is: 0x6ffe10
Why in the output a variable memory address is greater than b variable memory address even though a is declared first than b.
Should it not be reversed? Im studying c++ so any help is appreciated