<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-2%3Akkan048</id>
	<title>SE250:lab-2:kkan048 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-2%3Akkan048"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-2:kkan048&amp;action=history"/>
	<updated>2026-04-21T02:43:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-2:kkan048&amp;diff=4918&amp;oldid=prev</id>
		<title>Mark: 6 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-2:kkan048&amp;diff=4918&amp;oldid=prev"/>
		<updated>2008-11-03T05:18:59Z</updated>

		<summary type="html">&lt;p&gt;6 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 int main(void)&lt;br /&gt;
 {&lt;br /&gt;
  int* int_p;&lt;br /&gt;
  void* void_p;&lt;br /&gt;
  float* float_p;&lt;br /&gt;
  double* double_p;&lt;br /&gt;
  char* char_p;&lt;br /&gt;
 &lt;br /&gt;
  printf(&amp;quot;Size of pointer int %d void %d float %d double %d char %d\n&amp;quot;,&lt;br /&gt;
         sizeof(int_p),sizeof(void_p),sizeof(float_p),sizeof(double_p),sizeof(char_p));&lt;br /&gt;
 &lt;br /&gt;
      return 0;&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
There are 5 fundamental data types :&lt;br /&gt;
 Integer &lt;br /&gt;
   int  &lt;br /&gt;
&lt;br /&gt;
 Character &lt;br /&gt;
 char &lt;br /&gt;
&lt;br /&gt;
 Floating Point &lt;br /&gt;
 float &lt;br /&gt;
&lt;br /&gt;
 Double precision floating point&lt;br /&gt;
 double &lt;br /&gt;
&lt;br /&gt;
 Void &lt;br /&gt;
 void&lt;br /&gt;
&lt;br /&gt;
http://www.exforsys.com/tutorials/c-language/c-programming-language-data-types.html&lt;br /&gt;
&lt;br /&gt;
IN Window&lt;br /&gt;
Size of pointers int 4 void 4 float 4 double 4 char 4&lt;br /&gt;
&lt;br /&gt;
In Linix&lt;br /&gt;
Size of pointers int 4 void 4 float 4 double 4 char 4&lt;br /&gt;
&lt;br /&gt;
There are no difference bewteen the size of pointers of the data types.&lt;br /&gt;
And the size of pointers are same in Win &amp;amp; Linix&lt;br /&gt;
&lt;br /&gt;
 int x;&lt;br /&gt;
 int y;&lt;br /&gt;
 printf(&amp;quot;pointer_x = %p,pointer_y = %p,(long)(&amp;amp;x-&amp;amp;y)=%ld\n&amp;quot;,&amp;amp;x,&amp;amp;y,(long)(&amp;amp;x-&amp;amp;y));&lt;br /&gt;
 printf(&amp;quot;(long)&amp;amp;x-(long)&amp;amp;y=%ld\n&amp;quot;,(long)&amp;amp;x-(long)&amp;amp;y);&lt;br /&gt;
&lt;br /&gt;
In linix &lt;br /&gt;
&lt;br /&gt;
 pointer_x = 0x22ccb0,pointer_y = 0x22ccac,(long)(&amp;amp;x-&amp;amp;y)=1&lt;br /&gt;
 (long)&amp;amp;x-(long)&amp;amp;y=4&lt;br /&gt;
&lt;br /&gt;
In window&lt;br /&gt;
&lt;br /&gt;
 pointer_x = 0xfff1a9d8,pointer_y = 0xfff1a9d4,(long)(&amp;amp;x-&amp;amp;y)=1&lt;br /&gt;
 (long)&amp;amp;x-(long)&amp;amp;y=4&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>