I wanted to "return" a value using a void function with a pointer with only 2 values passed. But when I wanted to print out the value of area. It equals to 2, not 4. I tried changing the address of length++ to the address of area but still doesnt work

```
#include <iostream>
    #include <ctime>
    void yes(int* lol,int* lol2);

    using namespace std;

    int main()
    {
        static int length, width,area;
        int* p;
        length = 2;
        width = 2;
        p = &length;

        yes(&length, &width);

        cout << length << " " << *(p+1);
        cout << endl;
        system("pause");
    }

    void yes(int* length, int* width)
    {
        int area;
        int* p=&area;
        area = *length * *width;
        length = length + 1;
        length = p;
    }

```