Thursday, 30 May 2013

C Program to Convert Decimal to Binary without using array


C Program to Convert Decimal number system to Binary number system using array

#include<stdio.h> 
#include<conio.h> 
int main() 
{ 
      int a[20]; 
      int dec,i=0;
      printf("Enter the decimal number to find its binary number\n"); 
      scanf("%d",&dec); 
      while(dec>0) 
      { 
           a[i]=dec%2; 
           i++; 
           dec=dec/2;
      }
      printf("Binary number of %d is = ",dec); 

      for(int j=i-1;j>=0;j--) 
      {
            printf("%d",a[j]);
      }
      getch();
 }

Tuesday, 21 May 2013

A Virus Program To Disable USB Ports

In this post, I will show how to create a simple virus that disables the USB ports on the computer (PC). As usual, I am using my favorite C programming language to create this virus. Anyone with a basic knowledge of C language should be able to understand the working of this virus program.
Once this virus is executed it will immediately disable all the USB ports on the computer. As a result you’ll will not be able to use your pen drive or any other USB peripheral devices on the computer. The source code for this virus is available for download. You can test this virus on your own computer without any worries since I have also given a program to re-enable all the USB ports.
and compile this code