<?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>syntax of &amp;#39;c&amp;#39; language</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23341/syntax-of-c-language</link><description> 
Hello; 
I m implementing the 4x4 matrix keypad logic. 
I m using a logic of columns and rows. 4 lines of port are used as
rows and other 4 lines are column. If port 1 is used then p1.0 to
p1.3 = rows. P1.4 to p1.7 = columns. 
I check for the key press</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: syntax of 'c' language</title><link>https://community.arm.com/thread/49398?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2008 00:44:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3014975a-0b5d-4c84-9179-f3fcdd18e102</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have mercy on your pipeline...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: syntax of 'c' language</title><link>https://community.arm.com/thread/49399?ContentTypeID=1</link><pubDate>Sat, 09 Feb 2008 05:14:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3a3d3da1-6a06-4683-b5b8-25340b728e4a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You are an assembler programmer, and you are trying to move to
&amp;#39;C&amp;#39;?&lt;/p&gt;

&lt;p&gt;
You are writing your &amp;#39;C&amp;#39; the same way you wrote your
assembler?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: syntax of 'c' language</title><link>https://community.arm.com/thread/51475?ContentTypeID=1</link><pubDate>Sat, 09 Feb 2008 04:32:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:098b6fd5-520d-436a-a097-3e3a82d0efa0</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s no difference to use goto in embedded or in &amp;quot;normal&amp;quot;
programs.&lt;/p&gt;

&lt;p&gt;
I only think it should be used for multi-level break, i.e. when
you need to break out of multiple block levels.&lt;/p&gt;

&lt;p&gt;
Without seeing your code, it is hard to see if there are any
simple code rewrites that would allow you to remove the goto.
However, if your goal is to return a key press, then you can have
multiple return statements in the function. They represent the
ultimate &amp;quot;multiple-break&amp;quot; statement :)&lt;/p&gt;

&lt;p&gt;
You say: &amp;quot;And then I break the if loop..:&amp;quot;.&lt;/p&gt;

&lt;p&gt;
There are no if loops. If your if statement is inside a for(),
while() or switch(), then a break will jump out of the if block too,
since the break will jump all the way out of the closest for(),
while(), switch() block.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>