{"id":7687,"date":"2009-04-08T16:42:36","date_gmt":"2009-04-08T13:42:36","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=7687"},"modified":"2009-04-08T16:42:36","modified_gmt":"2009-04-08T13:42:36","slug":"%d1%83%d0%ba%d0%b0%d0%b7%d0%b0%d1%82%d0%b5%d0%bb%d1%8c-%d0%bd%d0%b0-void","status":"publish","type":"post","link":"http:\/\/studentpmr.ru\/?p=7687","title":{"rendered":"\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 void"},"content":{"rendered":"<p>\u0422\u0430\u043a\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0442\u0438\u043f.<\/p>\n<p>void *v_ptr;<\/p>\n<p>int *int_ptr = new int;<\/p>\n<p>v_ptr = int_ptr;<\/p>\n<p> <!--more-->  <\/p>\n<p>\/\/\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 4.<\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>void swap (void *&amp;item1, void *&amp;item2)<\/p>\n<p>{<\/p>\n<p>void *temp = item1;<\/p>\n<p>item1 = item2;<\/p>\n<p>item2 = temp;<\/p>\n<p>}<\/p>\n<p>void main(void)<\/p>\n<p>{<\/p>\n<p>int *i = new int,<\/p>\n<p>*j = new int;<\/p>\n<p>*i = 5;<\/p>\n<p>*j = 20;<\/p>\n<p>clrscr();<\/p>\n<p>swap((void *&amp;)i,(void *&amp;)j);<\/p>\n<p>printf(&quot; *i = %d, *j = %d \\n&quot;, *i,*j);<\/p>\n<p>float *x = new float,<\/p>\n<p>*z = new float;<\/p>\n<p>*x = 5.0;<\/p>\n<p>*z = 20.0;<\/p>\n<p>swap((void *&amp;)x,(void *&amp;)z);<\/p>\n<p>printf(&quot; *x = %f, *z = %f \\n&quot;, *x,*z);<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0430\u043a\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0442\u0438\u043f. void *v_ptr; int *int_ptr = new int; v_ptr = int_ptr;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"_links":{"self":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7687"}],"collection":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7687"}],"version-history":[{"count":0,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7687\/revisions"}],"wp:attachment":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7687"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}