NULL pointer

PHOTO EMBED

Sat Jun 11 2022 05:47:57 GMT+0000 (Coordinated Universal Time)

Saved by @KanishqJ8

int main(){
    int a =34;
    int*ptr=NULL;
    if(ptr!=NULL){
        printf("address of a is %d\n",*ptr);
    }
    else{
        printf("the pointer is a null pointer and cannot be dereferenced");
    }
    return 0;
}
content_copyCOPY