I was trying to print the address of a variable using printf and cout in my .cpp file but both the line gives me different output.
Here is the code
#include <bits/stdc++.h>
using namespace std ;
int main(){
int a = 5 ;
cout << &a << endl ;
printf("%u\n",&a);
}
if the variable is same how can the address be different?