Search:

Type: Posts; User: ak22

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    17,471

    Thank you, it works now.

    Thank you, it works now.
  2. Replies
    4
    Views
    17,471

    How to link and compile a .c and .asm file?

    Hello,

    I have the following files:

    mainlinemem.c...


    #include <stdio.h>

    int gcdmem(int a,int b);
  3. Difference between defining and declaring a variable?

    What is the difference between defining and declaring a variable?
  4. Thanks!

    Thanks!
  5. Is the solution to the following exercise correct?

    I've been stuck for hours trying to solve the following exercise:

    "Write a function called monthName that takes as its argument a value of type enum
    month (as defined in this chapter) and returns...
  6. I solved it! #include main() {...

    I solved it!


    #include <stdio.h>

    main()
    {
    float fl, last, last_b, power;
    double db, lastdb, lastdb_b, power_b;
    fl = 0;
  7. Thanks a lot, guys. I'm beginning to grasp how...

    Thanks a lot, guys. I'm beginning to grasp how floating-point numbers work.



    I will try to write a code for this. This looks a little harder.
  8. I think I figured out how to get the minimum...

    I think I figured out how to get the minimum values of floating-points.

    The following code:


    #include <stdio.h>

    main()
    {
    float fl, last;
  9. I just realized that the following two minimum...

    I just realized that the following two minimum values:

    Minimum range of float variable: 1.175494e-038 and
    Minimum range of double variable: 2.225074e-308

    are actually 0. (I've put the %e...
  10. Hi, I'm trying to solve exercise 2-1 from "The...

    Hi,

    I'm trying to solve exercise 2-1 from "The C Programming Language", 2nd edition, which asks to:

    "Write a program to determine the ranges of char, short, int, and long variables, both signed...
  11. How to determine the minimum value of floating-point types using direct computation?

    I'm trying to determine the minimum range of floating-point types.

    It's easy when using values from standard headers:


    #include <stdio.h>
    #include <float.h>

    main()
    {
Results 1 to 11 of 11