• 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ß
HTML
3 Votes
Functions in python
2 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
Answer please
0 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Html 5 document question
1 Votes