Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It assigns user input value to <code>a</code> and prints it out. it is done by using a <code>Statement Expression</code>. </p> <p>Statement Expressions are <strong><a href="http://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html#Statement-Exprs" rel="noreferrer">gnu gcc compiler extension</a></strong> are not supported by the C/C++ standards. Hence any code which uses statement expression is non standard conforming and non portable.</p> <p>The IBM IBM XL C/C++ v7.0 also support Statement Expressions &amp; it's doccumentation explains them aptly: </p> <p><strong>Statement Expressions:</strong> </p> <blockquote> <p>A compound statement is a sequence of statements enclosed by braces. In GNU C, a compound statement inside parentheses may appear as an expression in what is called a <code>Statement expression</code>.</p> </blockquote> <pre><code> .--------------. V | &gt;&gt;-(--{----statement--;-+--}--)--------------------------------&gt;&lt; </code></pre> <blockquote> <p>The value of a statement expression is the value of the last simple expression to appear in the entire construct. If the last statement is not an expression, then the construct is of type void and has no value.</p> </blockquote> <p>Always compile your code by selecting a sandard in GCC, use one of the options <code>-ansi</code>, <code>-std=c90</code> or <code>-std=iso9899:1990</code>, <code>-std=c++03</code>, <code>-std=c++0x</code>; to obtain all the diagnostics required by the standard, you should also specify <code>-pedantic</code> (or <code>-pedantic-errors</code> if you want them to be errors rather than warnings)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload