g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
wesebi gviCvenebs, rom gamosaxulebis gamoTvlisas operandebi<br />
daiyvaneba im operandis tipze, romelsac udidesi zoma aqvs.<br />
magaliTad, mocemulia aRwera:<br />
double f, s; unsigned char ch; unsigned long k; int i;<br />
unda gamoviTvaloT<br />
s=f*(i+ch/k);<br />
tipebis gardaqmnis Tanmimdevroba Semdegia: operandi ch daiyvaneba<br />
unsigned int tipze (wesi 5), Semdeg igive ch daiyvaneba unsigned long tipze,<br />
radganac ch/k operaciaSi k - unsigned long tipisaa (wesi 6), Semdeg i<br />
daiyvaneba unsigned long tipze, da mrgval frCxilebSi mocemuli<br />
gamosaxulebis Sedegi iqneba unsigned long tipis. es Sedegi daiyvaneba<br />
double tipze (wesi 3), da mTeli gamosaxulebis tipi iqneba double.<br />
1.5.2. tipebis gardaqmna miniWebisas<br />
miniWebis dros Tu miniWebis operaciis marjvena da marcxena<br />
operandebis tipebi gansxvavdeba, moqmedebs tipebis gardaqmnis martivi<br />
wesi: miniWebis operaciis marjvena mxares mdebare mniSvnelobis tipi<br />
daiyvaneba im cvladis tipze, romelsac eniWeba mniSvneloba.<br />
magaliTad, programa<br />
#include<br />
main()<br />
{<br />
short x=19; char y=125; float z;<br />
z=x+y;<br />
printf("%d %d %d",sizeof(x), sizeof(y), sizeof(x+y));<br />
printf("\n%d %f", sizeof(z), z);<br />
return 0;<br />
}<br />
daabrunebs Sedegs: 2 1 4<br />
4 144.000000<br />
pasuxidan Cans, rom x+y-is mniSvneloba gardaiqmna z-is tipze.<br />
34