c++ - What is the equivalent of unsigned long int in c#? -


i have c struct defined follows:

typedef struct {      unsigned long int a;  } test; 

i want create c# equivalent of struct?

any help? confusing me "unsigned long int" at least 32-bit, mean, it's either 32-bit, 64-bit or 16-bit, right?

you want uint or ulong depending on int or long was on native c platform:

  • c# uint 32 bits
  • c# ulong 64 bits

the at least , platform dependency necessary concern in c because translated machine code , c developed many architectures varying word sizes. c# on contrary defined against virtual machine (exactly java or javascript) , can abstract hardware's word size in favor of 1 defined language's standard vm (the clr in c#). differences between vm , harware word size taken care of vm , hidden hosted code.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -