I see, that makes a lot more sense. Thank you.Originally Posted by SlyMaelstrom
I see, that makes a lot more sense. Thank you.Originally Posted by SlyMaelstrom
Oh my goodness.
Here is in an int variable:
int num;
Here is an assignment to that variable:
num = 3;
What is stored in 'num'?
Here is another assignment:
num = 5;
What is stored in num? Is it 35? Or is it 5?
Here is a char variable:
char myChar;
Here is an assignment to that variable:
myChar = 'a';
What is stored in myChar?
Here is another assignment:
myChar = 'b';
What is stored in myChar? Is it "ab"? Or is it 'b'? Does a char variable work differently than an int variable?