<?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>C51 multiplication</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29818/c51-multiplication</link><description> 
Dear Erik! 

 
What do I have to do recieve a 32-bit result if I multiply 2
16-bit variables? 
For example: 
unsigned int a; 
unsigned int b; 
unsigned long c; 

 
c = a * b; Why I have 16-bit result? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: C51 multiplication</title><link>https://community.arm.com/thread/68177?ContentTypeID=1</link><pubDate>Sat, 23 Mar 2013 04:18:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6ae13bd2-3af9-4d77-8452-8bb817f3d0e3</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
This is covered by the C standard, which is always good to take a
closer look at now and then.&lt;/p&gt;

&lt;p&gt;
What do you think happens if at least one of a or b are also 32
bit long?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>