1
Reply

How to measure the size of any variable without “sizeof” operator?

Roshan Rathod

Roshan Rathod

4y
1.1k
0
Reply

    // without using sizeof
    byte[] dataBytes = BitConverter.GetBytes(x);
    int d = dataBytes.Length;