About 43,800,000 results
Open links in new tab
  1. Is the size of C "int" 2 bytes or 4 bytes? - Stack Overflow

    Does an Integer variable in C occupy 2 bytes or 4 bytes? What are the factors that it depends on? Most of the textbooks say integer variables occupy 2 bytes. But when I run a program printing the

  2. Why does an int take up 4 bytes in c or any other language?

    This is a bit of a general question and not completely related to the c programming language but it's what I'm on studying at the moment. Why does an integer take up 4 bytes or How ever …

  3. c - How many bytes do pointers take up? - Stack Overflow

    I am little bit confused about pointers and how many bytes they take up. In my textbook it first says that pointers on 16 bit systems take up 2 bytes, 32 bit systems 4 bytes, 64 bit system 8 …

  4. Float and Int Both 4 Bytes? How Come?

    Jan 6, 2012 · Int is 4 bytes with a range of +- 2^31 Float is 4 bytes with a range of +- 1.2E(+- 38) Float encompasses so many more points on the Real Line and yet is equal to the size of int. Is …

  5. .net - Fastest way to convert int to 4 bytes in C# - Stack Overflow

    Jan 12, 2012 · What is a fastest way to convert int to 4 bytes in C# ? Fastest as in execution time not development time. My own solution is this code: byte[] bytes = new byte[4]; unchecked { …

  6. Can I assume the size of long int is always 4 bytes?

    Mar 7, 2016 · Is it always true that long int (which as far as I understand is a synonym for long) is 4 bytes? Can I rely on that? If not, could it be true for a POSIX based OS?

  7. Calculating Page Table Size - Stack Overflow

    Apr 30, 2017 · Since we have a virtual address space of 2^32 and each page size is 2^12, we can store (2^32/2^12) = 2^20 pages. Since each entry into this page table has an address of size 4 …

  8. Why the size of a pointer is 4bytes in C++ - Stack Overflow

    Mar 11, 2010 · If on your implementation a pointer is 32bit, then that's very likely an architecture which can address 2^32 bytes. (Note that even the size of bytes might be different depending …

  9. c++ - Alignment along 4-byte boundaries - Stack Overflow

    Aug 7, 2009 · 4.1.1 Alignment of Words, Doublewords, Quadwords, and Double Quadwords Words, doublewords, and quadwords do not need to be aligned in memory on natural …

  10. java - Convert 4 bytes to int - Stack Overflow

    Convert 4 bytes to int Asked 15 years, 10 months ago Modified 2 months ago Viewed 133k times