Search:

Type: Posts; User: pyroknife

Search: Search took 0.01 seconds.

  1. Thank you.

    Thank you.
  2. I think that's what I meant, but phrased poorly. ...

    I think that's what I meant, but phrased poorly.

    So in the following program:

    int stringLength (const char string[])
    {
    int count = 0;
    while ( string[count] != '\0' )
    ++count;
    return count;
  3. Basically, from what I understand, using "return"...

    Basically, from what I understand, using "return" causes the function in the program to stop it's current routine and return back to the beginning of the function.

    Is that incorrect?
  4. Isn't it meant just the way the phrase "returns a...

    Isn't it meant just the way the phrase "returns a value" sounds?
  5. Bit confused about void main() vs int main()

    I am a bit confused about void main() vs int main().

    My book says the void is included when the function returns no value. Can someone explain to me what is meant by "returns no value."
Results 1 to 5 of 5