• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • 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 Answers
+ 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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How to make a game code
1 Votes
What is HelloWorld
1 Votes
About create tuples [Solved]
1 Votes
Missing]
0 Votes
How do you make Event listeners Minecraft Spigot plugin development
0 Votes
Tic tak toe
0 Votes
Lesson on Robotics
1 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
About this app
1 Votes
Inner .html
0 Votes