• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
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 odpowiedzi
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes
Alguém Português por aqui?
0 Votes
Hardware of computer
3 Votes