title: i am not getting the output in the console. The output window simply popup when i run my code in dev c++ but not showing any output
body: <p>i have tried this same code in online compiler and got the correct output. But in dev C++ i am getting blank output console.</p>
  <pre><code>  #include&lt;stdio.h&gt;
    int main(){
    float a[5],*ptr,val;
    int i,flag=0;
    ptr=a;
    for(i=0;i&lt;5;i++){
        scanf(&quot;%f&quot;,ptr+i);
    }
    printf(&quot;\n enter the value to be searched&quot;);
    scanf(&quot;%f&quot;,&amp;val);
    for(i=0;i&lt;5;i++){
        if(*(ptr+i)==val){
            flag=1;
            break;
        }
     }
     if(flag==1){
        printf(&quot;\n element found&quot;);
     }
     else
        printf(&quot;\n not found&quot;);
     return 0;
     }
  </code></pre>