0
What will happen if i declare variable like this?
https://code.sololearn.com/cBf0rCSvo0y0/?ref=app https://code.sololearn.com/cBf0rCSvo0y0/?ref=app
2 odpowiedzi
+ 5
You can use a char to initialize a float with its ASCII value: float f = 'A' => f will be 65.0. It's just that 'aa' is not a valid char literal. A char can only be one character. Also, "String" in line 3