+ 1
How to assign the value of g to p
1 Answer
0
int g = 7;
int p = 16;
int *ptr = &p;
*ptr = g;
cout <<"Value of p is:" << p <<endl;
//that's what you want?
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes