DEV Community

Mohammed Salah
Mohammed Salah

Posted on

C++9th code(pointer &Memory )

    #include<iostream>
    using namespace std; 
    int main()
    {
float x ; 
cout<<"\n\n\n\t\t Enter Your number  : "; 
cin>>x; 
float*ptr=&x; 
cout<<"\n\n\t***************************************\n\n";
cout<<"\n\n\tYour number is ";
cout<<*ptr ;
cout<<" is pointed in memory as -->  ";
cout<<ptr;
cout<<"\n\n\t***************************************\n\n"; 
    cin.get(); 
    return 0 ;  
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay