Search:

Type: Posts; User: lexitron

Search: Search took 0.01 seconds.

  1. Thread: why int main?

    by lexitron
    Replies
    7
    Views
    1,047

    why int main?

    I am curious as to why we use int main, with a return 0 at the end. Is there anyone who just says


    void main() {
    ...
    }

    without a return statement. Is there something better about int main?
  2. pointers and function calls inside a function

    Hello, I have a problem I am trying to figure out. I have a variable a in main. I am passing the address of this variable to my function foo.


    int main() {
    int a = 0;

    foo(&a);

    }
  3. Replies
    4
    Views
    1,980

    enough memory for windows 7?

    I have a 6 year old laptop (still going strong!), and am wanting to give windows 7 a shot. I read on the windows website that it requires 1GB of RAM, and my machine has .99 GB. Will I have problems...
  4. Replies
    2
    Views
    1,711

    Ha! I must multiply numValues by dblsize. So now...

    Ha! I must multiply numValues by dblsize. So now I can just use (double *data, int numValues)? Thank you so much for your help!
  5. Replies
    2
    Views
    1,711

    dynamic memory and double pointers

    i've finished a project requiring me to complete a few simple tasks without having any statements in my main besides my function calls and my return 0; statement.

    My problem is that in my...
  6. Replies
    2
    Views
    1,521

    nevermind. I figured it out. printf...

    nevermind. I figured it out.

    printf ("%.1f\n", *(*data + ndx));
  7. Replies
    2
    Views
    1,521

    double pointers

    hello, can someone please give me some clue as to what is going wrong with my code. When I print my array, all of my elements contain a value of 0. Thank you.




    #include <stdio.h>
    #include...
Results 1 to 7 of 7