Why this code didn't give error? | SoloLearn: Learn to code for FREE!

+3

Why this code didn't give error?

https://code.sololearn.com/c5pVPtiBlf1g/?ref=app

c

7/1/2020 7:01:58 PM

tom

2 Answers

New Answer

+2

Because you have cast the pointer type causing the compiler to lose track of the const storage type.

+1

Is it do any implicit Pointer conversion like implicit type conversion occurred by compiler.