NULL (C)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
NULL është makroja e C-së për një pointer që s'tregon askund. Funksionet si malloc() dhe fopen() e kthejnë NULL kur dështojnë, prandaj kontrollo gjithmonë: if (p == NULL).
EnglishEN
NULL is C's macro for a pointer that points nowhere. Functions like malloc() and fopen() return NULL when they fail, so always check: if (p == NULL).
Si ta mendosh
Si një zarf pa adresë: s'ke ku ta çosh.
Lexoje në anglisht
Like an envelope with no address: nowhere to send it.
Shembull kodic
FILE *f = fopen("notat.txt", "r");
if (f == NULL) {
perror("fopen");
return 1;
}