I am using c++ under 64 bit linux, the compiler (g++) is also 64 bit. When I print the address of some variable, for example an integer, it is supposed to print a 64 bit integer, but in fact it prints
I\'m learning Objective C to program on iOS. I know it has something to do with pointers, which I fail to understand.
In C++, Lets say I\'m creating an array of pointers and each element should point to a data type MyType. I want to fill this array in a function fillArPtr(MyType *arPtr[]). Lets also say I can create
I am relatively new to writing in C. I have self taught myself using what resources I have found online and in print. This is my first real project in C programming. Gotta love on-the-job training.
This question already has answers here: Determine size of dynamically allocated memory in C (15 answ开发者_JAVA百科ers)
I have always avoided the C++ casts (static_cast, const_cast, dynamic_cast [I also avoid RTTI], etc) because I regard them as a waste of typing and I never saw any advantages, so I use C-style casts e
i am trying to create a 2d array usingdouble pointer... my code is... int **p1; p1=(int **) malloc(2*sizeof(int *));
I am programming in C. I am using also a library to create tasks which can communicate among them via messages. The content of these messages must be the pointer to the data you want to exchange.
I\'m quite new to C++ and I have written the class and function below: class Person { public: boost::shared_ptr<Details> GetDetails(const std::string& name) const;
I have a basic pointer question. I have some code like this: Please let me know if anything is wrong in the following code: