- Program :
#include <iostream>
#include <string>
using namespace std;
int main(){
cout <<"\n----------------POINTERS----------------\n";
cout <<"\n----------------Creating Pointers----------------\n";
string snacks = "Pani puri";
cout << snacks<< "\n";
cout << &snacks << "\n";
return 0;
}
- Output :
No comments:
Post a Comment