I am trying to compile the following code on Ubuntu (64-bit), with Code::Blocks 10.05 as IDE:
#include using namespace std; int main() {
In your code,you wrote char a[2]; which is wrong.You shoud've wrote char* a[2]; Then you can get your proper output.