A friend of mine told me that this code has some problems:
#include <iostream>
#include <cstdio>
using namespace std;
#define cout printf
int main(){
cout("cout");
}
He didn't give me the reason and asked me to figure it out which I couldn't. The code seems to be working fine, what could possibly be wrong with it?
coutto be an alias ofprintf. And the two are completely different animals.