1.

Which is the correct syntax to use typedef for struct?

A. <pre class="prettyprint lang-c">struct temp<br> {<br> int n;<br> };<br> typedef struct temp TEMP;<br></pre>
B. <pre class="prettyprint lang-c">typedef struct temp<br> {<br> int n;<br> }TEMP;<br></pre>
C. <pre class="prettyprint lang-c">typedef struct temp<br> {<br> int n;<br> }TEMP;<br></pre>
D. All of above
E. None of these
Answer» E. None of these


Discussion

No Comment Found