What is the size of pointer ?
Also size of pointer in 64 bit pointer
Answers were Sorted based on User's Feedback
Answer / shraddha
The size of pointer is 2 bytes on 16 bit platform
The size of pointer is 4 bytes on 32 bit platform
The size of pointer is 8 bytes on 64 bit platform
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / kunal mittal
Size of the pointer often corresponds to the architecture
Using a 32-bit OS gives you a 32bit pointer (ditto for 64 bit)
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / shakti singh khinchi
Ans1: Size of a pointer is size of a WORD in OS. OR you can
say that size of a pointer is similar to size of a "int"
variable on that OS.
Ans2: size of 64 bit pointer is also similar to size of an
integer type variable that is 8 bytes.
| Is This Answer Correct ? | 0 Yes | 1 No |
Differentiate between a pointer and a reference with respect to c++.
What is c++ library?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
When is a template a better solution than a base class?
How do I exit turbo c++?
What are class and object in C++?
What is namespace std; and what is consists of?
What relational operators if statements in c++?
Will rust take over c++?
How would you implement a substr() function that extracts a sub string from a given string?
How can you link a c++ program to c functions?
how is returning structurs from functions?Show an eg?