44.Find the output of the following code: #include <iostream> using namespace std; int main() { int * ptr = new int; cout<<ptr<<" && "<<*ptr; return 0; } code example
Example: pointer questions c++
#include<iostream>
using namespace std;
int main()
{
int x;
cout << "Enter a number\n";
cin >> x;
cout << *(&x) << "\n";
return 0;
}