Saturday 16 February 2019

Union exercice

#union_exercice#


Exercise

Create a union that stores an array of 21 characters and 6 ints (6 since 21 / 4 == 5, but 5 * 4 == 20 so you need 1 more for the purpose of this exercise), you will set the integers to 6 given values and then print out the character array both as a series of chars and as a string.

Solution

No comments:

Post a Comment

Note: only a member of this blog may post a comment.