The main purpose of the trial balance is to:
A.
Enable the account closing process to be performed
B.
Detect errors in the accounting records
C.
Test the equality of debits and credits in the ledger
D.
Provide a preliminary view of how the financial statements will appear