Question: Can someone help me with my study guide for C PROGRAMMING: 1) ____ creates a new data type without actually reserving any storage locations. a.

Can someone help me with my study guide for C PROGRAMMING:

1) ____ creates a new data type without actually reserving any storage locations.

a. struct {int month; int day; int year;} birth;

b. struct {int month; int day; int year;} birth, current;

c. struct Date {int month; int day; int year;};

d. struct Date {int month; int day; int year;} birth;

2) Line 5 in the function below can be replaced with ____. 1 void strcopy (char string1[], char string2[]) 2 { 3 int i = 0; 4 5 while (string2[i] != '\0') 6 { 7 string1[i] = string2[i]; 8 i++; 9 } 10 string1[i] = '\0'; 11 }

a. while (string2[i])

b. while (!string2[i])

c. while (string2[i] < '\0')

d. while (string2[i] != ' ')

3) Pointers ____ be initialized when they are declared.

a. Must

b. Must not

c. Can

d. Can not

4) Adding ____ to a pointer causes the pointer to point to the next element of the original data type being pointed to.

a. 1

b. 1 * sizeof(data type being pointed to)

c. 2

d. 2 * sizeof(data type being pointed to)

5) ____ is not a valid C statement.

a. struct {int month; int day; int year;} birth;

b. struct {int month; int day; int year;} birth, current;

c. struct Date {int month; int day; int year;};

d. struct {int month, int day, int year} birth;

6) char codes[] = "sample"; sets aside ____ elements in the codes array.

a. 5

b. 6

c. 7

d. 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!