to say something in a clear, firm, and official way so that everyone knows it is true or decided
The mayor declared the new bridge open during the ceremony.
After a long count, officials declared her the winner of the election.
✦ Late Middle English from Latin ‘declarare’ meaning ‘to make clear’.
to officially tell a government or authority about money, goods, or information, usually for tax or legal reasons
Travelers must declare any food they bring into the country.
You have to declare your earnings on this tax form.
in computing, to introduce a variable, function, or other element by stating its name and sometimes its type so that the program knows it exists
In the code, we first declare a counter variable.
If you forget to declare the function, the program will not compile.
in cricket, for the captain of the batting team to end his or her team’s innings before all players are out
England’s captain declared at 450 runs to give the bowlers enough time.
The team declared early, confident they could bowl out the opposition.