Message from C, C++ discussions

December 2019

— Use a variable to pass the size

— 

Why are you trying to calculate the size of array when you already know? pass an extra argument in the function for array size

— This was a tell the output kind of the question...

— Well as off now i know.. That pointer to the array Iss passed in the functions...

— The size of variables depends on the system and the compiler you are using

— So I was hoping that the pointer size will be 4 so 4/4 =1

— Https://stackoverflow.com/questions/2331751/does-the-size-of-an-int-depend-on-the-compiler-and-or-processor

Message permanent page

— Yeah.. Exactly can u please explain me more

— Stereospace

— Ohh damm i realize it just know

— I got this

— Good for you😊👍