Tuesday, November 13, 2012

comparing character and integer in C++

#include<iostream.h>
#include<conio.h>
main()
{
      int i;
      char c;
      for(i=0;i<256;i++)
      {
                        c=i;
                        cout<<i<<"\t"<<c<<endl;
                        }
                        getch();
                        return 0;

}

No comments:

Post a Comment