Search:

Type: Posts; User: feckless

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,230

    You have called scanf() twice. First is the line...

    You have called scanf() twice. First is the line right after the first printf (prompting user for shower length) and then right after again using check variable. As far as the program is concerned,...
  2. Replies
    3
    Views
    2,037

    A basic tip from one learner to another: when you...

    A basic tip from one learner to another: when you compile, compile with warnings. They can be helpful. Also, it's better to step away from your editor sometimes or better not to start typing in code...
  3. My question wasn't actually about calling the...

    My question wasn't actually about calling the function. It wasn't necessarily about how and where to declare either. In the example in the OP, void foo(void) is declared twice, once at the top of the...
  4. That's what I figured. I've been conducting...

    That's what I figured.

    I've been conducting some tests on my own, and so that brings me to a secondary, perhaps also fantastically-simple, question: Are there advantages, if any, to declaring the...
  5. General question about declaring a function in C

    Hey guys, I'm a pretty novice programmer, so this might seem like some fantastically-simple question.

    Suppose I have something like:


    #include <stdio.h>
    void foo(void);
    int main(void)
    {
    ...
Results 1 to 5 of 5