if i do this:
[CODE=cpp]#include <iostream>
int main()
{
char number1 = '9' , number2 = '1' , answer ;
answer = '9' + '1'
cout << answer << endl ;
cin.get()
}[/CODE]
then the result will be: :
and if i do this :
[CODE=cpp]
#include <iostream>
int main()
{
char number1 = 9 , number2 = 1 , answer ;
answer = 9 + 1
cout << answer << endl ;
cin.get()
}[/CODE]
whats the result now?
[CODE=cpp]#include <iostream>
int main()
{
char number1 = '9' , number2 = '1' , answer ;
answer = '9' + '1'
cout << answer << endl ;
cin.get()
}[/CODE]
then the result will be: :
and if i do this :
[CODE=cpp]
#include <iostream>
int main()
{
char number1 = 9 , number2 = 1 , answer ;
answer = 9 + 1
cout << answer << endl ;
cin.get()
}[/CODE]
whats the result now?
Comment