title: Can anyone help me with this code?
body: <p>I think my logic is correct but it's not printing anything. The code is to eliminate the vowel from a string and then display it.  </p>
  
  <pre><code> #include&lt;stdio.h&gt;
   #include&lt;conio.h&gt; 
   void main()
    { 
     char *str="shivank"; 
     int i,len;
     char *q; 
     clrscr();  
     len=strlen(str);
      for(i=0;i&lt;=len;i++)
       {   
          if((*str=='a')||(*str=='e')||(*str=='i')||(*str=='o')||(*str=='u')) 
             str++;     
          else if(*str=='\0')       
              break;   
          else   
            {      
              *q=*str;  
               str++;
               q++; 
            }
       }
       *q='\0';
       puts(q);  
       getch(); 
     } 
  </code></pre>