Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Exercise 1
- #include <iostream>
- int main() {
- float value = 0;
- float *pValue = &value;
- std::cout << "Enter value: ";
- std::cin >> value;
- std::cout << "\nPointer value = " << *pValue << std::endl;
- *pValue +=2;
- std::cout << "Pointer value + 2 = " << *pValue << std::endl;
- }
Add Comment
Please, Sign In to add comment