Search:

Type: Posts; User: jnwk888hwq

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    1,864

    I thought using %d the compiler will convert 65.0...

    I thought using %d the compiler will convert 65.0 to 65 which is an integer right? But why the value turn out to be 0? I still dun understand?

    Let's say if I use exit(1) if program exit normally...
  2. Replies
    14
    Views
    1,864

    What's the difference b/w exit(1) and exit(0)?...

    What's the difference b/w exit(1) and exit(0)? When do we use them?
  3. Replies
    14
    Views
    1,864

    Yup, I know. I want to know why using %d will...

    Yup, I know. I want to know why using %d will cause value to be 0 and not 65?
  4. Replies
    14
    Views
    1,864

    #include int main(void) { float b; ...

    #include <stdio.h>
    int main(void)
    {
    float b;
    b = 65.0;
    printf("The value of b is %d\n", b);
    return 0;

    }
    OUTPUT: The value of b is 0.
  5. Replies
    14
    Views
    1,864

    How to use this function header? I never use b4...

    How to use this function header? I never use b4 but see b4?
  6. Replies
    14
    Views
    1,864

    No. of bytes?

    Need to confirm.

    Does float has 8 bytes in a 32 bit machine?

    That means:
    char - 1 byte
    int - 4 bytes
    float - 8 bytes
    double - 16 bytes
  7. Replies
    8
    Views
    2,439

    Oh I think I know whta you are trying to say. 10...

    Oh I think I know whta you are trying to say. 10 bytes right? But why do we add the size of char?

    But I need your confirmation for this:

    char *pointers = "Toh Chin";

    My lecture notes put 9...
  8. Replies
    8
    Views
    2,439

    I dun quite get what you mean? Can you tell me if...

    I dun quite get what you mean? Can you tell me if it is 10 or 6 bytes?
  9. Replies
    8
    Views
    2,439

    Amount of memory space need?

    char *string2 ="HELLO";

    What is the reservatin of memory required for initialisation for the above declaration??

    Lecturer said 10 bytes, tutor says 6 bytes while lecture notes has
    one similar...
  10. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    Then how should I calculate area? I can't think...

    Then how should I calculate area? I can't think of any formula. Please help.
  11. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    Anyway, my friends managed to get the program BUT...

    Anyway, my friends managed to get the program BUT still got one problems - area always becomes zero. How to overcome it?


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

    int main(void)
    {
    void...
  12. Replies
    5
    Views
    1,641

    But when I post problems nobody want to help....

    But when I post problems nobody want to help. They only ask to try and try. BUT I DID TRY AND TRY. yet can't get the results. My probrlems is posted in Disk IP/OP.

    Thanks.
  13. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    I really dun know. I know 1/2 x base x height but...

    I really dun know. I know 1/2 x base x height but what about this?

    Can someone please help?

    Also, aint the program too long. I know shorter program do exist. How to shorten this program?
  14. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    I did try. However, I manage to get the program...

    I did try. However, I manage to get the program done a moment ago. But I dun know how to find the area. Can any one help? Also, is my step too long? Is there any shortest methods? This question is...
  15. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    I did try. However, I manage to get the program...

    I did try. However, I manage to get the program done a moment ago. But I dun know how to find the area. Can any one help? Also, is my step too long? Is there any shortest methods? This question is...
  16. Thread: Disk IP/OP

    by jnwk888hwq
    Replies
    15
    Views
    2,760

    Disk IP/OP

    Help........! I think writing a program that read and write datas from a file and onto another file is quite complicated. I dun know what to do. Can anyone please explain the following:

    write a c...
Results 1 to 16 of 16