{esonusharma}  Resources


Hey! Visit our youtube channel

 Youtube

cpp Pointer

Posted on: Fri Feb 23 2024 05:30:00 GMT+0530 (India Standard Time)

#include<iostream>

using namespace std;

int main()
{
    int x, *y;
    x=7;
    y=&x;
    cout<<"x= "<<x<<endl;
    cout<<"*y= "<<*y<<endl;
    cout<<"&x= "<<&x<<endl;
    cout<<"y= "<<y<<endl;
    return 0;
}

Output:

x= 7
*y= 7
&x= 0x8kkkkkkkwn6c
y= 0x8kkkkkkkwn6c

Upcoming Courses:

OpenFOAM Basic



Upcoming Topics


SnappyHexMesh