Computer Science, asked by madh7isparuna, 1 year ago

Find the Number of Bytes Needed to Store DDMMYYYY and DD-MM-YYYY Format in C Language
How many Bytes (bits) will be needed to store "DDMMYYYY" & "DD-MM-YYYY" format in C Language (Preferably minimum bits)?

Answers

Answered by yasas
0
for integer data type it occupies 2 bytes 
  as DDMMYYYY all are integers so the appropriate place is allocated for them by declaration we have to handle three declarations one for day and one for month and one for year so individually 2 bytes now over all space occupied them is 6 bytes
                                or
if you declare it as one it allocates 2 bytes i.e. 16 bits mostly we prefer the less occupying space because  when we deal with a computer we have to be careful in data handling as well as time and as well as space we have to handle more data in accuracy in less time and in less space i.e. source code(programming code) should be less in number of lines
Similar questions