What does ; random string ; represent in C -


this question has answer here:

semicolon stands termination of statement in c, allows code

; " int random string " ;  

to compile without warnings , causes trouble in

; int random string ;  

which rules involved here ?

the 2 semicolons ;; represent empty statement.

this construction

; " int random string " ;  

represents expression statement has no effect.

this construction is

; int random string ; 

is invalid.

as for-statement construction this

for( ;; ) { /*...*/ } 

means 3 expressions omitted , condition implied equal true. infinite loop can interrupted using jump statement in body (statement).


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -