C++9th code(pointer &Memory )
Mohammed Salah

Mohammed Salah @md-salah

About: Civil Engineer Like programming

Location:
saudi arabia
Joined:
Jan 15, 2025

C++9th code(pointer &Memory )

Publish Date: Jan 20
0 0
    #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

Comments 0 total

    Add comment