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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -