C++

Asked • 05/12/19

Is the sizeof(some pointer) always equal to four?

For example:`sizeof(char*)` returns 4. As does `int*`, `long long*`, everything that I've tried. Are there any exceptions to this?

1 Expert Answer

By:

Gerald C. answered • 05/16/19

Tutor
New to Wyzant

C++ pro with years of industry experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.