Search:

Type: Posts; User: Xaris

Search: Search took 0.01 seconds.

  1. Create an array that holds the position from every element from another array

    void main(){
    int i;
    int j;
    int *per;
    int n;
    printf("enter the length of permutation\n");
    scanf("%d",&n);
    per =(int*)malloc(n*sizeof(int));
    if(per==NULL){
    ...
  2. Replies
    3
    Views
    1,039

    Count distinct elements in an list in C

    struct Node
    {
    int data;
    struct Node *next;
    };
    typedef struct Node Node_t;



    int count_distinct(Node_t * start)
Results 1 to 2 of 2