Search:

Type: Posts; User: graydot

Search: Search took 0.01 seconds.

  1. i got that part. actually later. but what i was...

    i got that part. actually later. but what i was saying that usually i get a error when i try to access an element of the array that does not exist that way. so i didn't go into the logic too much. i...
  2. and yes, it should segfault.

    and yes, it should segfault.
  3. hey. thanks a lot. that is more understandable. I...

    hey. thanks a lot. that is more understandable. I didn't know realloc did that.
  4. Replies
    10
    Views
    14,678

    ah. that explains it. thanks a lot.

    ah. that explains it. thanks a lot.
  5. Replies
    10
    Views
    14,678

    printf("Square root of 100 is equals to: %d",...

    printf("Square root of 100 is equals to: %d", sqrt(x));
    gives output as 0, however
    printf("Square root of 100 is equals to: %d", (int)sqrt(x));
    gives the correct output of 10.
    I wonder why the...
  6. Theoren, you code actually works perfectly fine...

    Theoren, you code actually works perfectly fine on my gcc compiler. I can find the file test created. I am using Netbeans on Ubuntu Hardy Heron.
Results 1 to 6 of 6