bump
Type: Posts; User: nanobot
bump
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...
Thanks, the question prescribed the format, I don't know why :)
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>
...
thanks a lot for the tip :)
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];
...
thanks a lot, changed the variable types several times so I messed up :(. Going to fix mode function now :)
it's no longer segmentation error, so i cannot continue with the same thread
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:...
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...
sorry, i started on learning array yesterday. my lecture notes are vague as hell :(. working on it starting now
#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...