Question: is t rex a mammal?
Answer: Reptile. Specifically, T. rex was a diapsid reptile in the archosaur family. It's closest living relatives are the birds and the crocodilians.