- קוד: בחר הכל
int *p; // declare a pointer to an int data type
int i = 5;
int result = 0;
p = &i; // now 'p' contains the address of 'i'
result = *p; // 'result' gets the value at the address pointed by 'p'
// i.e., it gets the value of 'i' which is 5
ראו גם:
פירוט שפת תכנות לסביבת Arduinoעמוד זה הוא תרגום של The pointer operators לפי רישיון Creative Commons Attribution-ShareAlike 3.0.