Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. can anybody explain me how the size of an empty class is 1byte

can anybody explain me how the size of an empty class is 1byte

Scheduled Pinned Locked Moved Managed C++/CLI
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    philiptabraham
    wrote on last edited by
    #1

    can anybody explain me how the size of an empty class is 1byte thanks in advance

    C M 2 Replies Last reply
    0
    • P philiptabraham

      can anybody explain me how the size of an empty class is 1byte thanks in advance

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Did you mean to ask this in the .NET forum ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • P philiptabraham

        can anybody explain me how the size of an empty class is 1byte thanks in advance

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Why don't you ask Bjarne?[^]

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        L 1 Reply Last reply
        0
        • M Mark Salsbery

          Why don't you ask Bjarne?[^]

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          STOP READING THE DOCUMENTATION! What do you think your are, a software developer or something? :laugh::laugh::laugh:

          M 2 Replies Last reply
          0
          • L led mike

            STOP READING THE DOCUMENTATION! What do you think your are, a software developer or something? :laugh::laugh::laugh:

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            :jig:

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            1 Reply Last reply
            0
            • L led mike

              STOP READING THE DOCUMENTATION! What do you think your are, a software developer or something? :laugh::laugh::laugh:

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              It's funny - Google makes billions, yet only a few of us know how to use it :)

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              L 1 Reply Last reply
              0
              • M Mark Salsbery

                It's funny - Google makes billions, yet only a few of us know how to use it :)

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                L Offline
                L Offline
                led mike
                wrote on last edited by
                #7

                Actually the whole thing sort of makes sense. Years back before the web was so large, forums and news groups were a logical mechanism for gaining information. Now anyone that is capable just searches and finds it, most of the time. So now in these forums we are left pretty much with the not capable category ( filet-o-fish). I bet the VB forum is very busy, and C# isn't far behind it! :laugh:

                C G 2 Replies Last reply
                0
                • L led mike

                  Actually the whole thing sort of makes sense. Years back before the web was so large, forums and news groups were a logical mechanism for gaining information. Now anyone that is capable just searches and finds it, most of the time. So now in these forums we are left pretty much with the not capable category ( filet-o-fish). I bet the VB forum is very busy, and C# isn't far behind it! :laugh:

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  The C# forum is WELL behind the VB.NET one....

                  Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  1 Reply Last reply
                  0
                  • L led mike

                    Actually the whole thing sort of makes sense. Years back before the web was so large, forums and news groups were a logical mechanism for gaining information. Now anyone that is capable just searches and finds it, most of the time. So now in these forums we are left pretty much with the not capable category ( filet-o-fish). I bet the VB forum is very busy, and C# isn't far behind it! :laugh:

                    G Offline
                    G Offline
                    George L Jackson
                    wrote on last edited by
                    #9

                    I hate filet-o-fish. It is just not natural. A tasteless by product with lots of guts. X|

                    "We make a living by what we get, we make a life by what we give." --Winston Churchill

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups