<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>c program to convert decimal to hexadecimal using while loop - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/c-program-to-convert-decimal-to-hexadecimal-using-while-loop/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/c-program-to-convert-decimal-to-hexadecimal-using-while-loop/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 14 Sep 2021 06:11:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>c program to convert decimal to hexadecimal using while loop - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/c-program-to-convert-decimal-to-hexadecimal-using-while-loop/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to convert hexadecimal to binary using c language ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/how-to-convert-hexadecimal-to-binary-using-c-language/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/how-to-convert-hexadecimal-to-binary-using-c-language/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 20:08:14 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[9 in hexadecimal]]></category>
		<category><![CDATA[Accentur interview questions and answers]]></category>
		<category><![CDATA[algorithm to convert binary number to decimal number]]></category>
		<category><![CDATA[algorithm to convert decimal to hexadecimal]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Asian Paints Ltd. interview questions and answers]]></category>
		<category><![CDATA[binary to hexadecimal in c]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c program to convert decimal to hexadecimal using while loop]]></category>
		<category><![CDATA[c program to convert hexadecimal to decimal]]></category>
		<category><![CDATA[c program to convert hexadecimal to decimal and vice versa]]></category>
		<category><![CDATA[c program to convert hexadecimal to octal]]></category>
		<category><![CDATA[c program to find binary equivalent of a number]]></category>
		<category><![CDATA[c++ program to convert hexadecimal to binary]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[decimal to binary in c]]></category>
		<category><![CDATA[decimal to hex]]></category>
		<category><![CDATA[decimal to hexadecimal converter]]></category>
		<category><![CDATA[decimal to hexadecimal in c]]></category>
		<category><![CDATA[decimal to hexadecimal in c without using array]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[DHFL Pramerica Life Insurance Company Ltd interview questions and answers]]></category>
		<category><![CDATA[Elico HealthCare Services Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[HCL Technol interview questions and answers]]></category>
		<category><![CDATA[hex a0 to decimal]]></category>
		<category><![CDATA[hex calculator]]></category>
		<category><![CDATA[hex string to binary c]]></category>
		<category><![CDATA[hex to decimal]]></category>
		<category><![CDATA[hex to decimal chart]]></category>
		<category><![CDATA[hex to decimal converter]]></category>
		<category><![CDATA[hex to decimal in embedded c]]></category>
		<category><![CDATA[hexadecimal number system]]></category>
		<category><![CDATA[hexadecimal to decimal convertehex to decimal]]></category>
		<category><![CDATA[hexadecimal to octal converter]]></category>
		<category><![CDATA[hexadecimal to word converter]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[Raqmiyat Information Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[simple c program to convert hexadecimal to binary]]></category>
		<category><![CDATA[simple c program to convert hexadecimal to decimal]]></category>
		<category><![CDATA[Tata AIA Life Insurance interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindr interview questions and answers]]></category>
		<category><![CDATA[The Linde Group interview questions and answers]]></category>
		<category><![CDATA[write a c program to convert hexadecimal number to binary number]]></category>
		<category><![CDATA[zenqa interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=317</guid>

					<description><![CDATA[Answer : To convert hexadecimal to binary using c language...]]></description>
										<content:encoded><![CDATA[<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">#include&lt;stdio.h&gt;<br/>#include&lt;conio.h&gt;<br/>void main()<br/>{<br/>	clrscr();<br/>	long int i=0;<br/>	char binarynum[100], hexdec[100];<br/>	printf(&quot;Enter Hexadecimal Value : &quot;);<br/>	scanf(&quot;%s&quot;,hexdec);<br/>	printf(&quot;\nEqual Binary value is : &quot;);<br/>	while(hexdec[i])<br/>	{<br/>		switch(hexdec[i])<br/>		{<br/>			case &#039;0&#039; : printf(&quot;0000&quot;);<br/>				break;<br/>			case &#039;1&#039; : printf(&quot;0001&quot;);<br/>				break;<br/>			case &#039;2&#039; : printf(&quot;0010&quot;);<br/>				break;<br/>			case &#039;3&#039; : printf(&quot;0011&quot;);<br/>				break;<br/>			case &#039;4&#039; : printf(&quot;0100&quot;);<br/>				break;<br/>			case &#039;5&#039; : printf(&quot;0101&quot;);<br/>				break;<br/>			case &#039;6&#039; : printf(&quot;0110&quot;);<br/>				break;<br/>			case &#039;7&#039; : printf(&quot;0111&quot;);<br/>				break;<br/>			case &#039;8&#039; : printf(&quot;1000&quot;);<br/>				break;<br/>			case &#039;9&#039; : printf(&quot;1001&quot;);<br/>				break;<br/>			case &#039;A&#039; : printf(&quot;1010&quot;);<br/>				break;<br/>			case &#039;B&#039; : printf(&quot;1011&quot;);<br/>				break;<br/>			case &#039;C&#039; : printf(&quot;1100&quot;);<br/>				break;<br/>			case &#039;D&#039; : printf(&quot;1101&quot;);<br/>				break;<br/>			case &#039;E&#039; : printf(&quot;1110&quot;);<br/>				break;<br/>			case &#039;F&#039; : printf(&quot;1111&quot;);<br/>				break;<br/>			case &#039;a&#039; : printf(&quot;1010&quot;);<br/>				break;<br/>			case &#039;b&#039; : printf(&quot;1011&quot;);<br/>				break;<br/>			case &#039;c&#039; : printf(&quot;1100&quot;);<br/>				break;<br/>			case &#039;d&#039; : printf(&quot;1101&quot;);<br/>				break;<br/>			case &#039;e&#039; : printf(&quot;1110&quot;);<br/>				break;<br/>			case &#039;f&#039; : printf(&quot;1111&quot;);<br/>				break;<br/>			default : printf(&quot;\nInvalid hexadecimal digit %c&quot;,hexdec[i]);<br/>		}<br/>		i++;<br/>	}<br/>	getch();<br/>}</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="output" class="color-purple">Output</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">Enter Hexadecimal Value : AB1c <br/>Equal Binary value is : 1010101100011100</code></pre> </div>
<div class="TextHeading">
<div class="hddn">
<h2 id="explanation" class="color-green">Explanation:</h2>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="hexadecimal-and-binary-values" class="color-pink">Hexadecimal and Binary Values</h2>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Hex</th>
<th>Decimal</th>
<th>Binary</th>
</tr>
<tr>
<td class="text-leftalign">0</td>
<td class="text-leftalign">0</td>
<td class="text-leftalign">0000</td>
</tr>
<tr>
<td class="text-leftalign">1</td>
<td class="text-leftalign">1</td>
<td class="text-leftalign">0001</td>
</tr>
<tr>
<td class="text-leftalign">2</td>
<td class="text-leftalign">2</td>
<td class="text-leftalign">0010</td>
</tr>
<tr>
<td class="text-leftalign">3</td>
<td class="text-leftalign">3</td>
<td class="text-leftalign">0011</td>
</tr>
<tr>
<td class="text-leftalign">4</td>
<td class="text-leftalign">4</td>
<td class="text-leftalign">0100</td>
</tr>
<tr>
<td class="text-leftalign">5</td>
<td class="text-leftalign">5</td>
<td class="text-leftalign">0101</td>
</tr>
<tr>
<td class="text-leftalign">6</td>
<td class="text-leftalign">6</td>
<td class="text-leftalign">0110</td>
</tr>
<tr>
<td class="text-leftalign">7</td>
<td class="text-leftalign">7</td>
<td class="text-leftalign">0111</td>
</tr>
<tr>
<td class="text-leftalign">8</td>
<td class="text-leftalign">8</td>
<td class="text-leftalign">1000</td>
</tr>
<tr>
<td class="text-leftalign">9</td>
<td class="text-leftalign">9</td>
<td class="text-leftalign">1001</td>
</tr>
<tr>
<td class="text-leftalign">A</td>
<td class="text-leftalign">10</td>
<td class="text-leftalign">1010</td>
</tr>
<tr>
<td class="text-leftalign">B</td>
<td class="text-leftalign">11</td>
<td class="text-leftalign">1011</td>
</tr>
<tr>
<td class="text-leftalign">C</td>
<td class="text-leftalign">12</td>
<td class="text-leftalign">1100</td>
</tr>
<tr>
<td class="text-leftalign">D</td>
<td class="text-leftalign">13</td>
<td class="text-leftalign">1101</td>
</tr>
<tr>
<td class="text-leftalign">E</td>
<td class="text-leftalign">14</td>
<td class="text-leftalign">1110</td>
</tr>
<tr>
<td class="text-leftalign">F</td>
<td class="text-leftalign">15</td>
<td class="text-leftalign">1111</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>We want to convert hexadecimal number AB1c to binary. For this we will replace each hexadecimal digit to binary values using the above table:</li>
</ul>
</div>
</div>
<p><b>Hexadecimal Number:</b> A B 1 c<br />
<b>Binary Values: </b>(1010) (1011) (0001) (1100)<br />
So <b>(AB1c)<sub>16</sub> = (1010101100011100)<sub>2</sub></b></p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/how-to-convert-hexadecimal-to-binary-using-c-language/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
