From this picture,when\$ V_{in} = V_{DD}\$,I know \$M_1\$ and \$M_3\$ will turn on,and \$M_2\$ will turn off because their \$ V_{gs} \$ are \$V_{DD}\$ and 0 ,but why will \$M_4\$ turn off,and \$V_B=V_{DD}\$, \$V_{out}=0\$ ?
If i know \$V_{out}=0\$ and \$V_B=V_{DD}\$ first,then of course i know \$M_4\$ will turn off ,but if now i don't know the value of \$V_B\$ and \$V_{out}\$,and neither do \$M_4\$ ,how do i know \$M_4\$ turn off,and \$V_B=V_{DD}\$, \$V_{out}=0\$ ?