• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • 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 Antworten
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
How can one build an Ai app
4 Votes
How to properly reverse a string in python
2 Votes
Can someone explain how it works (im new)
1 Votes
AI Takeover
2 Votes
How to learn python
1 Votes
C course progress restart
2 Votes
Using Python on VScode
0 Votes
Average of Two Numbers
0 Votes
Hearts
0 Votes
Error in the result
0 Votes