Fix table memory

parent 64a1fbd2
......@@ -14,13 +14,12 @@ Para entender o que é um ponteiro é necessário visualizar a memória como se
vetor. Vamos supor que a memória do computador é um vetor {\it M[n]}, como representado abaixo, {\bf N+1} é
o tamanho da memória:
\begin{tabular}{ccccccccccccc}
& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & ... & \\ \cline{2-13}
{\bf M} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} \\ \cline{2-13}
\begin{tabular}{cllllllllllll}
& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & ... & N \\ \cline{2-13}
{\bf M} & \multicolumn{1}{|l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{{\bf 12}} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} \\ \cline{2-13}
\multicolumn{1}{l}{} & & & & & & & {\bf A} & & & & &
\end{tabular}
\end{table}
\end{table}
Em um programa C, é possível declarar uma variável qualquer e uma região desta memória será
......@@ -213,10 +212,11 @@ P->n = 23;
No vetor de memória a declaração poderia assumir o seguinte aspecto:
\begin{tabular}{cllllllllllllllll}
& 0 & 1 & 2 & & 3 & 4 & 5 & 6 & & 7 & 8 & & 9 & & ... & N \\ \cline{2-17}
{\bf M} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{X} & \multicolumn{1}{l|}{\0} & \multicolumn{1}{l|}{23} & \multicolumn{1}{l|}{3.6} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{{\bf 3}} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} \\ \cline{2-17}
\multicolumn{1}{l}{} & & & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{2}{r|}{.codigo} & \multicolumn{1}{r}{.n} & \multicolumn{1}{r|}{.cr} & \multicolumn{1}{l|}{} & & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{{\bf P}} & \multicolumn{1}{l|}{} & & \\ \cline{5-10} \cline{13-13} \cline{15-15}
\begin{tabular}{cllllllllllll}
& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & ... & N \\ \cline{2-13}
{\bf M} & \multicolumn{1}{|l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{{\bf 12}} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} \\ \cline{2-13}
\multicolumn{1}{l}{} & & & & & & & {\bf A} & & & & &
\end{tabular}
Por motivos de simplicidade, o exemplo acima assume que as variáveis do tipo {\it int} e {\it float} ocupam a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment