<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>array offset</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21864/array-offset</link><description> 
hi all, 

 
I am describing my problem below, 

 
I am using LPC2214, keil Uv3 compiler 

 
I am definig one global array of the size Arr[120][120] 
I am initilizing the whale array with the value 254. 

 
unsigned char Array[100][100] 

 
main() 
</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: array offset</title><link>https://community.arm.com/thread/88371?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2007 08:17:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2a876ec9-6605-42d9-8be7-17dc6935a9ec</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The array indices are from 0 to 99, so where do you think you
write with Arra[100][100]? That is 101 bytes outside the array...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: array offset</title><link>https://community.arm.com/thread/48219?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2007 07:59:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7d6bb73a-ced9-4cbc-bd35-9f2dc1de39b0</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;pre&gt;
&lt;b&gt;unsigned char&lt;/b&gt; Array[100][100]
:
:
Array[100][100] = &lt;b&gt;10000&lt;/b&gt;;
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
Check your compiler &lt;b&gt;Manual&lt;/b&gt; - what is the maximum value that
can be stored in an &lt;b&gt;unsigned char&lt;/b&gt;...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>