+ 2

I found definition for the block "A block is a sequence of zero or more statements enclosed by curly braces"but I don't get it

I need help

1st Jan 2018, 8:03 AM
Taha Elhasseen Abdelrahman
Taha Elhasseen Abdelrahman - avatar
6 odpowiedzi
+ 3
sequence of zero means an empty block as said by @John Wells
1st Jan 2018, 8:17 AM
Rishabh
Rishabh - avatar
+ 2
thanks alot , I appreciate that
1st Jan 2018, 8:25 AM
Taha Elhasseen Abdelrahman
Taha Elhasseen Abdelrahman - avatar
+ 2
sequence of zero or more statements means a block may be an empty or else it may consists of statements i.e., a block consists of zero statements or it may consists of one or more statements
1st Jan 2018, 8:31 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar
+ 1
This is a block with zero statements. for (int i = 0; i < 10; i++) {} This one has 3 statements. for (int i = 0; i < 10; i++) { int i2 = i*2; int i3 = i*3; int i6 = i2*i3; }
1st Jan 2018, 8:17 AM
John Wells
John Wells - avatar
0
what do you want to know??
1st Jan 2018, 8:13 AM
Rishabh
Rishabh - avatar
0
"sequence of zero " what is the meaning
1st Jan 2018, 8:15 AM
Taha Elhasseen Abdelrahman
Taha Elhasseen Abdelrahman - avatar