1.

What is the correct syntax to initialize bit-fields in an structure?

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


Discussion

No Comment Found