<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kushal Singh Rathore</title>
    <description>The latest articles on DEV Community by kushal Singh Rathore (@kushalsingh00).</description>
    <link>https://dev.to/kushalsingh00</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F263698%2F4cc92329-c68f-4efb-8841-e23c2df1d338.png</url>
      <title>DEV Community: kushal Singh Rathore</title>
      <link>https://dev.to/kushalsingh00</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kushalsingh00"/>
    <language>en</language>
    <item>
      <title>Unexpected result while solving given type of expression</title>
      <dc:creator>kushal Singh Rathore</dc:creator>
      <pubDate>Mon, 24 Feb 2020 17:39:44 +0000</pubDate>
      <link>https://dev.to/kushalsingh00/unexpected-result-solving-an-expression-26hf</link>
      <guid>https://dev.to/kushalsingh00/unexpected-result-solving-an-expression-26hf</guid>
      <description>&lt;p&gt;Hello friends,&lt;/p&gt;

&lt;p&gt;getting zero in the code written below during compilation but the correct answer is 30.&lt;/p&gt;

&lt;p&gt;int main()&lt;br&gt;
{&lt;br&gt;
    int a=(30/100)*100;&lt;br&gt;
    printf("%d",a);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;here the problem is all the expression is written with int datatype only no float value is here so &lt;strong&gt;0.3&lt;/strong&gt; is considered as &lt;strong&gt;0&lt;/strong&gt; according to integer and the whole expression is &lt;strong&gt;zero&lt;/strong&gt;.&lt;br&gt;
To correct this we have to provide either upper value as float or denominator as float &lt;/p&gt;

&lt;p&gt;and the code is look like this with the correct output.&lt;/p&gt;

&lt;p&gt;int main()&lt;br&gt;
{&lt;br&gt;
    int a=(30/100.0)*100;&lt;br&gt;
    printf("%d",a);&lt;br&gt;
}&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Undefined Behavior of Terminal</title>
      <dc:creator>kushal Singh Rathore</dc:creator>
      <pubDate>Mon, 24 Feb 2020 17:02:27 +0000</pubDate>
      <link>https://dev.to/kushalsingh00/undefined-behavior-of-terminal-13ic</link>
      <guid>https://dev.to/kushalsingh00/undefined-behavior-of-terminal-13ic</guid>
      <description>&lt;p&gt;Hi guys,&lt;br&gt;
During writing code, we got irritated when we stuck at some problem and try to find the solution on the internet but can't find it.I am here with a problem faced by my friend.&lt;/p&gt;

&lt;p&gt;the problem is during running code in a terminal the terminal gets crashed just after running it without entering any input and shows an extension after compilation is &lt;strong&gt;EXE.APC.VIR&lt;/strong&gt; in &lt;strong&gt;vs code&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is due to the terminal is set by default in command prompt.&lt;br&gt;
step 1:- go to the terminal window and click the window navigator where &lt;strong&gt;"code"&lt;/strong&gt; is written in the top right of the terminal and click "select default shell"&lt;br&gt;
step 2:- select &lt;strong&gt;Powershell&lt;/strong&gt; as default in the next window or popup.&lt;br&gt;
and then run your program you are now getting &lt;strong&gt;.exe&lt;/strong&gt; file and code works fine.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
