What is wrong with the following structure definition?

struct MyStruct
{
int size;
float weight;
}

a. Nothing
b. Can not have mixed data types in a structure
c. missing semicolon
d. Braces are not needed.

c. missing semicolon

Computer Science & Information Technology

You might also like to view...

The programmer usually enters source code into a computer using

A) a process's. B) a compiler. C) a linker. D) a debugger. E) none of the above.

Computer Science & Information Technology

What is the output of the following function call, given the function definition below?

cout << tester (4); // function call int tester (int n) // function definition { if (n == 1) return 3; else return 2 * tester ( n – 1); } a) 3 b) 6 c) 12 d) 24

Computer Science & Information Technology