Sakshi Thakur🌸 generally most of the modern compillars use 32 or 64 bit processing. But still to confirm, you can always use sizeof () function in C/C++ to know the exact size according to your compiler
Yes sizeof() is an operator, not a function. More specifically it is a compile time operator, that means the size of the item must be known at compile time.
int sz = sizeof(foo); // sz is now 80
since this works many people wrongly assume that you can use sizeof() to determine the size of an array passed to a function - you cannot. The above example works because there is a statically sized array in scope with the sizeof() operator thus the compiler can determine the size.
The size of an array passed to a function cannot be determined at compile time since any array could be passed to the function at run time. Thus the confusion.