summaryrefslogblamecommitdiff
path: root/test/test05.cpp
blob: 320e2020640e881d32faf0e7eb6fe9dad595674c (plain) (tree)
1
2
3
4
5
6
7
8

                                  





                                  









                                 




























                                    
void func1(int a, int *b, char c);
void func2(int a, int *b, char c);
void func3(int a, int *b, char c);
void func4(int a, int *b, char c);
void func5(int a, int *b, char c);
void func6(int a, int *b, char c);
void func7(int a, int *b, char c);
void func8(int a, int *b, char c);

void func1(int a, int *b, char c)
{
    *b = 100;
}

void func2(int a, int *b, char c)
{
    *(1 + b) = 200;
}

void func3(int a, int *b, char c)
{
    *(1 + (1 + b)) = 300;
}

void func5(int a, int *b, char c)
{
    int var1 = 1;
    *(var1 + b) = 400;
}

void func6(int a, int *b, char c)
{
    int *var2 = b;
    *var2 = 500;
}

void func7(int a, int *b, char c)
{
    int *var3 = 12 + b;
    *var3 = 600;
}

void func8(int a, int *bptr, char c)
{
    int **var4 = &bptr;
    **var4 = 700;
}