- Program :
#include <string>
using namespace std;
int main(){
cout <<"\n----------------REFERENCES----------------\n";
cout <<"\n----------------Creating References----------------\n";
string food = "Pizza";
string &meal = food;
cout << food << "\n";
cout << meal << "\n";
cout <<"\n----------------Memory Address----------------\n";
string dish = "Briyani";
cout << &dish;
return 0;
}
- Output :
No comments:
Post a Comment