How to automatically use typewriter font in arrays?

Something like this?

enter image description here

\usepackage{array} % for '\newcolumntype' macro

\begin{tabular}{ T | T }
p  & ($\lnot$p) \\ 
1  & 0 \\
0  & 1 \\

Since \ttfamily is a text-mode command, I suggest employing a tabular environment rather than an array environment.

I think you might have an XY-problem here.

With many OpenType fonts, you would be able to use the command


to get fixed-width numbers in a more-attractive font. You might wrap this in an environment, such as:


You might also find the Unicode figure space, which is exactly as wide as a tabular digit, useful here: