testint

  1. P

    problem in out put while using pointer in C++

    #include<iostream> using namespace std; class test { public: int* i ; test(int k) { i=&k; } }; int main() { test p(2); cout<<"for 1st time *(p.i) :"<< *(p.i); cout<<"\n"; cout<<"for 2nd time *(p.i) :"<< *(p.i); cout<<"\n"; cout<<"for...
Top Bottom