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;
}