answersLogoWhite

0

Why not? In this example there three semicolons, and one colon.

for (i=0; i<10; i>3? i+=2: i++) printf ("%d\n", i);

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Where you have to put semicolon in c programming?

For clasesses it defines from which class to inherit. :: means area of visibility in certain name space.


What is the difference between the usage of semicolon and comma BASIC progamming?

A semicolon can be used for separating the initial value, condition, and increment statement within a for loop. A comma can be used to separate elements of an array and parameters for methods and classes.


Can an for loop be terminated with a semicolon in c language?

Sure.for (i=0; i


Can you put a semicolon before and?

Typically, the semicolon implies " and" and therefore using and after a semicolon is redundant.


Which symbol is used as a statement terminator in C?

semicolon ';' (Not applicable for block-statements)


What is the use of semicolon for loop in some cases in c?

In some cases it is a separator:for (exp1; exp2; exp3) statement


Do you use and after a semicolon?

No, the word &quot;and&quot; should not follow a semicolon. Semicolons are used to separate independent clauses; if you want to include &quot;and,&quot; it would typically be used within one of the independent clauses separated by the semicolon.


Can a semicolon introduce a quotation?

No, a semicolon is not used to introduce a quotation. Quotations are usually introduced by a colon or with quotation marks. A semicolon is used to separate two independent clauses or in a series when the items require commas.


What does semicolon mean?

A semicolon is a symbol that looks like this:;


What statement marks the end of a do while loop?

It's the semicolon after the while ()part:i= 0;do printf ("%d %s\n", i, argv[i]); while (++i


Why you use colon in C language?

In C (and C++ and Java), the semicolon is used to mark the end of a statement. It is also used the separate the expressions in a for loop.


What does the semicolon and colon means?

A semicolon is used to separate two independent clauses in a sentence. A colon is used to introduce a list, explanation, example, or a quote.