Programming in C Language
[Click on the questions to view the answer]
- What are the advantages of data type int over data type double? What are the advantages of type double over type int?
- Identify the error in the following C statement
int x, i; for (i = 0; i < = 8; ++i) x[i] = i;
Will the error be defected? If so when?
- Determine how may bytes are needed to store a structure of type hair_info_t, assuming two bytes for an integer and one byte for a character.
- What does this sigmant print?
for (ch = (int) 'd'; ch < (int) 'n'; ch += 3) printf ("%c", (char) ch); printf ("\n");