Both are correct.
Anytime if you encounter a hydrocarbon chain with 2 -COOH groups, you can name them simply without numbering them, as they will be counted at the end of chain.
IUPAC NAME = ethanedioic acid
COMMON NAME = oxalic acid
Anytime if you encounter a hydrocarbon chain with 2 -COOH groups, you can name them simply without numbering them, as they will be counted at the end of chain.
IUPAC NAME = ethanedioic acid
COMMON NAME = oxalic acid
-
Actually we call it Oxalic acid (common name) and the IUPAC name is ethanedioic acid.