signed CodingBlocks = 9;
how is this correct if we have no written int codingblocks and only wrote coding blocks
Query regarding data type
It is absolutely correct since by default it takes the signed to be treated as int only, since you have given the value as 9, and 9 is nothing but integer, but it is generally advisable to include int as well. Output will be same in both scenario