Difference between memory of int type in C++ and C#
In `C#` int type variable take `4 byte` memory and in `c++` it take `2 byte` memory. Even in `c++ short` and `int` both take `2 byte` memory and `long` takes `4 byte`. And in C# the short and int just take 4 byte. Why is this difference of memory in both languages while both follow the OOPS?
Difference between memory of int type in C++ and C#
===

In `C#` int type variable take `4 byte` memory and in `c++` it take `2 byte` memory. Even in `c++ short` and `int` both take `2 byte` memory and `long` takes `4 byte`. And in C# the short and int just take 4 byte. Why is this difference of memory in both languages while both follow the OOPS?