Search:

Type: Posts; User: nanobot

Search: Search took 0.01 seconds.

  1. bump

    bump
  2. why constant change breaks down code

    The code produces conway's pattern as required. My problem is, when I define MAX to 80, it no longer works. Why? :(


    #include<stdio.h>

    #define MAX 20


    void generate(int cell[]);
    void...
  3. Thanks, the question prescribed the format, I...

    Thanks, the question prescribed the format, I don't know why :)
  4. Compilation error: how pass constants into function

    Errors:
    11016
    How can I pass constants into a function. I tried using ' ' but that also gave me error, so I removed them here.
    Why does it say cell undeclared?
    :(

    #include<stdio.h>
    ...
  5. thanks a lot for the tip :)

    thanks a lot for the tip :)
  6. void sort(int marks[], int n){ int...

    void sort(int marks[], int n){ int sorter[n]={0};
    sorter[0]=marks[0];
    int i, temp;
    for(i=1; i<n; i++){
    if (marks[i]>=sorter[i]) sorter[i+1]=marks[i];
    ...
  7. thanks a lot, changed the variable types several...

    thanks a lot, changed the variable types several times so I messed up :(. Going to fix mode function now :)
  8. it's no longer segmentation error, so i cannot...

    it's no longer segmentation error, so i cannot continue with the same thread
  9. Thanks to you, the segmentation error is gone,...

    Thanks to you, the segmentation error is gone, but I think I do not know the right way to pass array from one function to another:...
  10. how to pass array from one function into another: variance to mean

    function name implies what it does: i.e. finds mean variance etc.
    11014
    I think the mean is ok. The resultant mean in the main function is 6.something, ask you can see from the image.

    But the...
  11. sorry, i started on learning array yesterday. my...

    sorry, i started on learning array yesterday. my lecture notes are vague as hell :(. working on it starting now
  12. small program stuck at segmentation fault (mean, median... using arrays)

    #include<stdio.h>#include<math.h>


    double mean(int marks[], int n);
    double variance(int marks[], int n);
    double stdDev(int marks[], int n);
    double mode(int marks[], int n);
    void sort(int...
Results 1 to 12 of 12