Search:

Type: Posts; User: folem001

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    4,072

    Brilliant, Thanks for your help!!

    Brilliant,

    Thanks for your help!!
  2. Replies
    16
    Views
    4,072

    OK, but for it (in this basic example) to give a...

    OK, but for it (in this basic example) to give a desired output, they have to be the same as the prototype? For example, if f and r were char's, this wouldn't work..?

    But I understand that you can...
  3. Replies
    16
    Views
    4,072

    Ok, brilliant, I think i finally get it. So,...

    Ok, brilliant, I think i finally get it.

    So, the prototype is just for the compiler, if the function is defined after main....I'm guessing it would compile with a prototype even if the function...
  4. Replies
    16
    Views
    4,072

    Sorry quzah, that one I meant to delete the int's...

    Sorry quzah, that one I meant to delete the int's so that the type wouldn't be specified. It compiled and ran just fine without the type of x and y being specified, but I should always specify them...
  5. Replies
    16
    Views
    4,072

    The code was given in the c tutorial: ...

    The code was given in the c tutorial:

    Cprogramming.com Tutorial: Functions


    Just to clarify that the code give:


    #include <stdio.h>
  6. Replies
    16
    Views
    4,072

    Help with the C Tutorial on functions.

    Hi all, I'm currently going through the tutorial on c and I am confused by the following code:



    #include <stdio.h>

    int mult ( int x, int y );

    int main()
    {
Results 1 to 6 of 6