<?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%3Arbha033</id>
	<title>SE250:lab-2:rbha033 - 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%3Arbha033"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-2:rbha033&amp;action=history"/>
	<updated>2026-04-29T02:14:20Z</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:rbha033&amp;diff=5057&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:rbha033&amp;diff=5057&amp;oldid=prev"/>
		<updated>2008-11-03T05:19:03Z</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;I started off Task 1 with this code&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 int main(){&lt;br /&gt;
     int x = 10;&lt;br /&gt;
     double a = 10;&lt;br /&gt;
     long b = 10;&lt;br /&gt;
     char c;&lt;br /&gt;
     float d=10;&lt;br /&gt;
     int *ip=&amp;amp;x;&lt;br /&gt;
     int *p;&lt;br /&gt;
     printf(&amp;quot;%d  %d, %d %d %d %d %d \n&amp;quot;, sizeof(ip), sizeof(p), sizeof(x), sizeof(a), sizeof(b), sizeof(c), sizeof(d));&lt;br /&gt;
     return 0;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It ran to give me the result:&lt;br /&gt;
&lt;br /&gt;
 gcc -o task1 task1.c &amp;amp;&amp;amp; ./task1.exe&lt;br /&gt;
 4  4, 4 8 4 1 4 &lt;br /&gt;
 &lt;br /&gt;
 Compilation finished at Tue Mar 11 11:10:07&lt;br /&gt;
&lt;br /&gt;
Question: Are all pointers the same size?&lt;br /&gt;
&lt;br /&gt;
Answer: YES! They only store an address and all the addresses are the same size.&lt;br /&gt;
&lt;br /&gt;
Question: What other data types are the same size?&lt;br /&gt;
&lt;br /&gt;
Answer: int,long and float.&lt;br /&gt;
[[User:Rbha033|Rbha033]] 11:26, 11 March 2008 (NZDT)&lt;br /&gt;
&lt;br /&gt;
*[[SE250:lab-2:rbha033/task2|Onto task 2]]&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>