Search:

Type: Posts; User: dredre

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,317

    I used the K&R book since this Januaray, and it...

    I used the K&R book since this Januaray, and it was very hard to understand at first....I still have troubles understanding some of the concepts....I need more practice.
  2. Replies
    4
    Views
    2,340

    yeah, but how is it worked out ? for example, ...

    yeah, but how is it worked out ?

    for example,

    printf("*s++ = %d\n", *s++);

    (*s)++ it increments the pointer, but i can't really see how the output is 0
  3. Replies
    4
    Views
    2,340

    why this output?

    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    int *a, *s, i;

    s = a = (int *) malloc(4 * sizeof(int));

    for(i = 0; i < 4; i++)
  4. Replies
    4
    Views
    1,867

    maybe use qsort() to sort the numbers first in...

    maybe use qsort() to sort the numbers first in ascending order, then grab the first 10 elements of the sorted array.
  5. Thread: reading file?

    by dredre
    Replies
    4
    Views
    1,177

    in this situation, I think that the atoi()...

    in this situation, I think that the atoi() function could be useful (someone correct me if i'm wrong)

    If your text file contains numbers, atoi() lets you convert them to integer format for use in...
  6. Replies
    2
    Views
    2,048

    that's a huge if statement. Try using switch()

    that's a huge if statement. Try using switch()
  7. Replies
    14
    Views
    1,616

    This site...

    This site helped me out with basic C programming. Give it a try :)
  8. Replies
    2
    Views
    1,418

    Damn, if i would of joined sooner, my previous...

    Damn, if i would of joined sooner, my previous assignment would of been so much easier.

    That's exactley what we had to check for in the command line.

    btw, thanks for the quick response
  9. Replies
    2
    Views
    1,418

    Command Line Argument problem

    This is an assignment problem. It uses dynamic memory & the qsort function in the standard C library. The program is called csort

    Anyways, I dont understand this detail:

    it says "csort must be...
Results 1 to 9 of 9