Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // main.cpp
- // zad_1
- //
- // Created by Rafał Hrabia on 19/01/2020.
- // Copyright © 2020 Rafał Hrabia. All rights reserved.
- //
- #include <iostream>
- using namespace std;
- int*foo(double *a, double *b) {
- return new int( (*a) * (*b) );
- }
- int main(int argc, const char * argv[]) {
- double a = 3.5, b = 1.5;
- cout << *foo(&a, &b) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement