Class D airspace requires two-way communication - not a clearance - before entry, and that requirement disappears entirely the moment the tower closes.
Before entering Class C airspace, two-way radio contact is established only when ATC responds with your specific call sign - not just any acknowledgment.