Physics, asked by poojabanginwar2018, 16 days ago

7. Which of the following has the
same syntax. (1) Structure (2) Union
(3) Array (4) Pointer
O A. (1) and (2)
O B. (3) and (4)
O C. (1),(3) and (4)
O D. (1) and (3)​

Answers

Answered by mrlegendrohit
1

Answer:

O B. (3) and (4)

please mark me a Brilliant

Answered by remyanairlm
0

Answer:

The correct option is A. (1) and (2) i.e. Structure and Union have the same syntax.

Explanation:

The syntax of structure is as:

struct structureName{

dataType member 1;

dataType member 2;

dataType member 3;

};

The syntax of union is as:

union unionName{

dataType member 1;

dataType member 2;

dataType member 3;

};

As we see, the syntax of both a structure as well as a union is the same.

Hence, the correct option is A. (1) and (2).

Similar questions