1.How do I use the bit wise operator?
2. I have tried this code
Code:
#include<iostream>
#include<conio.h>
using namespace std;
main()
{
      int a,b;
      cout<<"Enter a number";
      cin>>a;
      b=a^a;
      cout<<a<<" raised to "<<a<<" is "<<b;
      getch();
      }
I use Dev-C++ Compiler.
The above code compiles and the output is like this
Enter a number 5
5 raised to 5 is 0(wrong!!!!!)

How do I raise a number to itself ?