Welcome Guest | Sign in | Register
Pointers & Structures - Discussion Page For Q.10584 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Pointers & Structures > Questions and Answers

Exercise:

Section 1

Q: A structure of type machine contains two fields, an integer called name, and a char pointer calledmemory. Show what the definition of the structure looks like.
A. Choice 1
struct machine {
int name;
char memory;
}
B. Choice 2
machine {
name : integer;
memory : char^;
};
C. Choice 3
struct machine {
int name;
char *memory;
};
D. None of these

Answer and Explanation

Answer:Choice 3
struct machine {
int name;
char *memory;
};

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.