• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

Why this code give the size of struct emp 16 , why not 14..???

https://code.sololearn.com/cn9Uhr0pWxs0/?ref=app

predefined-variablessizeofc
12th Aug 2020, 10:53 AM
Saumya Mishra
Saumya Mishra - avatar
2 ответов
+ 1
This might explain it https://www.geeksforgeeks.org/is-sizeof-for-a-struct-equal-to-the-sum-of-sizeof-of-each-member/amp/
12th Aug 2020, 11:11 AM
Abhay
Abhay - avatar
+ 1
Abhay thanks
12th Aug 2020, 11:15 AM
Saumya Mishra
Saumya Mishra - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
I'm about to make a complex calculator in python
0 Votes
Any Advise?
1 Votes
How far do courses go on Sololearn?
0 Votes
RUST'S FUTURE
1 Votes
Popsacles Aufgabe
1 Votes
why is python community is too small in sololearn?
0 Votes
Button In C++
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes