sizeof()

Hello, I am new to C++ and I recently came across "sizeof()" and I am confused to whether this is a c++ command, or if it needs to be defined somewhere. basically what I'm puzzled on, is what it can be used for, as well as how, or if I need to initialize it before using it.

Thanks,
Sabal
It is built into C/C++.

here is an explaination (saves me typing):
http://en.wikipedia.org/wiki/Sizeof
sizeof () is a keyword in the C++ , you cannot use it as a variable name or a
function name .

it's a part of the compiler itself. well the compiler is free to implement it in
their own way. Using a function call.

But one thing that you needs to remember sizeof() is not definided inside
STL or standard C library.
sizeof is an operator and it returns the size of a type or a variable in bytes, it isn't a function
Topic archived. No new replies allowed.