Hi,
I am new to the lite-C pointer arithmetic.
I've heard that you don't have to dereference the pointers.
I get a error in the following source code. I already tried to fix it on my own but with no success. It's probably a simple mistake laugh
The code prints the error: Can't convert P_GT:Pointer:Long:Long
Code:
#include <acknex.h>
#include <default.c>

function main()
{
 // 'min' shall point on the value of the smallest variable
 var x = 5 ,y = 3;
 var* min;
 
 if(x < y)
    min = x;
 else
    min = y;
 
 // output 'min'
 printf(_chr(str_for_num(NULL,min)));
 
 // determine, whether 'min' is bigger than 4
 if (min > 4)
    printf(">4");
 else
    printf("<=4");
}


The output of 'min' is correct(3).
Where is the mistake ?

Regards Paul