Ask yourself what the data is, i.e a number, decimal, text string and pick a type that best represents the max/min of the range of possible input. For example, if a 10% discount is going to be a whole number between 0-100, an unsigned short would suffice, as would a signed int or unsigned char. Depends how picky you want to be.
From what you mentioned, 10% discount, probably a float/int and the other two a char array.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.