>>8239480dinosaurs and pterosaurs and crocodiles are archosaurs, they share a common ancestor. dinosaurs are specific lineage and so are pterosaurs and so are crocs
reptiles like lizards are squamates, not archosaurs so they are different
i tried to be as tldr as possible