What is the value of letter if letter = 'c' + 3?
You should have indicate that the variable letter is a char. The character 'c' is always converted into an int then the 3 is added (which give 102).
What is the value of letter if letter = 'c' + 3?
You should have indicate that the variable letter is a char. The character 'c' is always converted into an int then the 3 is added (which give 102).
Fix the code below so that it runs without errors. Hint: you might need to change the names of some variables.
Be carefull ! Here, you have to add the line below just before the line "int main() {" :
#include <iostream>