Search:

Type: Posts; User: std10093

Search: Search took 0.03 seconds.

  1. Replies
    18
    Views
    7,859

    This is it because we have the prototype as if ...

    This is it because we have the prototype as if


    int mul(int i)

    so the compiler expects a return command in the body of it.However we do not wish to return anything so change the prototype of...
  2. Replies
    18
    Views
    7,859

    Yes. What do you mean? Declaration is...

    Yes.


    What do you mean?

    Declaration is equivalent to the prototype.Definition is the implementation of the function.This means the prototype and the body of it.

    Variable 'i' is passed as an...
  3. Replies
    18
    Views
    7,859

    At first you should realize that in the first...

    At first you should realize that in the first code i is a variable.In the second part i is a function and it is wrong.What you wanted to write i think is


    int multiply(int i)
    {
    printf("i...
Results 1 to 3 of 3