You submitted the query as article and I have moved it to forum for discussion.

Also there is a difference in C and C++ which you have to accept it.