Search:

Type: Posts; User: Roger Lo

Search: Search took 0.00 seconds.

  1. How can I let a function to read an array that is defined in my main function?

    I'm writing a program to count how many solution there is in the Eight Queens puzzle, I defined an array in the main function, and tried to use function to check them, but the array is not defined in...
  2. understood, thanks for everyone!

    understood, thanks for everyone!
  3. Why is i = j will always be true?

    Why is i = j will always be true?
  4. How to read the expression (i = j) || (j = k)

    I was practicing some exercise from the book, so I wrote down the program below.


    #include<stdio.h>

    int main(void)
    {
    int i = 7, j = 8, k = 9;

    printf("%d ", (i = j) || (j = k));
  5. Thanks

    Thanks
  6. I don't really understand the conversion specifier e and g

    I don't really understand the meaning of the code below

    printf("%12.5e\n", 30.253);
    printf("%-6.2g", .0000009979);

    their are printed out as:

    3.02530e+001
    1e-006
  7. Replies
    5
    Views
    3,888

    What does "conversion specification" means?

    I'm still a beginner so this question might be a little be too easy for the most of you, but please help out.
    I'm currently reading "C Programming - A Modern Approach." In its chapter 3, when it...
Results 1 to 7 of 7