OOOO, yeah I found increment.
So i++ is a postfix position and it looks like
int k = i++;
is the same as
int k = i;
i = i + 1;
Type: Posts; User: justiliang
OOOO, yeah I found increment.
So i++ is a postfix position and it looks like
int k = i++;
is the same as
int k = i;
i = i + 1;
Okay I found out the first one is chars[] = "hello";
But for the second question I cannot find it in my notes :S.
I was thinking that i++ only works when it is on it's own, ex:
int i = -1;...
1. How do you declare a variable s containing the string hello?
My attempt:
char s = "hello";
2. Why is it that when the following code executes:
int i = -1;
int k = i++;
Visual Studios Express 2010
The one with C++ and C.
How do I set it to max? I probably will only use it for dire situations since we are not allowed these tools on tests; we have to write it out by hand.
LOL -_-
AHHHHHHHHHHHHHHHHHHHHHHHHHHHH
Thanks Salem!
Hello everyone! I recently started programming 2 weeks ago and for one of the practice assignments I keep on getting an output of 0.00 no matter what number I plug in. I have spent two hours on...