/* Deallocation of the molecule causes deallocation of the atom, which makes the atom invalid. */ dt_dealloc ( molecule ); if ( dt_invalid ( atom ) == 1 ) printf ( "The atom is invalid.\n" );