C asks, C asks?

Updated on technology 2024-06-11
8 answers
  1. Anonymous users2024-02-11

    a is assigned to -1, and then the octal code and the unsigned decimal code are output.

    You just have to turn on the computer's calculator and do it.

    The int type is a 4-byte integer, and -1 is the ffffffffff calculator point hexadecimal, enter ffffffff

    Point occimal 37777777777

    Point decimal 4294967295

    Your two lines of program output these two numbers, with a comma in the middle.

  2. Anonymous users2024-02-10

    Hello First of all, you have a question:

    k /= 10;His meaning is : k = k 10; , where = is the composite operator in c, in modern compilers the composite operator and ordinary: k = k + 10; is indistinguishable (but in the past k&r c, it was thought that composite operators can produce a more compact **), and finally my suggestion is:

    Try to use composite operators because: 1, he can make your ** look cooler; 2, For example: b[a*2+d*(c+1)] = 10;

    b[a*2+d*(c+1)] = b[a*2+d*(c+1)] / 10;Which one you say is better?

    Now comes your second question:

    It's called an epoticon in C, and the way it is used is to round it to zero, so that when K is a single digit, it will round it to zero, and the natural result is 0, understand?

    Hope it helps.

  3. Anonymous users2024-02-09

    k = 10 means k = k 10

    If k is a single digit, k=0

    It is to seek quotient % is to seek surplus, and to seek surplus is to seek model.

    When you can't finish a line of the program, write it in a new line.

  4. Anonymous users2024-02-08

    k = 10 means k = k 10 If k is a single digit, how many is the single digit divided by 10.

  5. Anonymous users2024-02-07

    It depends on the type of k, if it is a floating-point type, it should not be zero, if it is an integer type, of course, it should be zero.

  6. Anonymous users2024-02-06

    Hello landlord, you are only established in the case of k as int type.

    If it is a double type, k is a decimal.

    There are similar ones in c.

    k+=10;k*=10;k-=10;

  7. Anonymous users2024-02-05

    k = 10 means k = k 10

    k is the word of the book k=0

    It is to seek business and to seek surplus.

  8. Anonymous users2024-02-04

    <> the first program should not need these 4 lines, plus these 4 lines is equivalent to reading the three letters of boy into ABC, so there is no content in the output statement after reading.

    The second program is not played when you run it, which is equivalent to no input, so there is no output.

Related questions
4 answers2024-06-11

2. The identifier must start with the letter a z, a z or an underscore, select b >>>More

11 answers2024-06-11

Your logic is not wrong.

There's a slight mistake with your format: scanf("%d,%d,%d", y, m, d) should be replaced by : >>>More

5 answers2024-06-11

Mistake 1: Because the three-digit number you are looking for is an integer, all variables should be int and not float. >>>More

2 answers2024-06-11

Let's take an analogy. Think of a linked list node as a person, and a linked list pointer as a human hand (the left hand is the forward pointer, and the right hand is the backward pointer). >>>More

14 answers2024-06-11

The program calculates the angle between the two needles at any time between 0:00 and 23:59. >>>More