Yes, your argument is quite ostensible.Though the output may vary with compilers.
For CODE1, OUTPUT = > AC
For CODE2, OUTPUT = > ***** (5 times) (You havn't specified the data type of n , so I am assuming it to be FLOAT)
If you don't specify "10.25" as "10.25f" ,then the program will store it in "Double Precision Floating Point format " albeit the right hand side of the expression i.e. variable "a" is declared as FLOAT (Single Precision Format ) due to which the program may give "an unexpected output"