A simple procedure is not understood, ask the master to help

Updated on educate 2024-05-08
8 answers
  1. Anonymous users2024-02-09

    i loops 4 times, but each time x is initialized to 3, so you don't need to consider i loops, just consider j k loops, outer loops j 3 times, inner loops k 2 times a total of 6 times, each time +3 ,, a total of 3*6=18 and x initial value is 3 so 18+3=21 times.

  2. Anonymous users2024-02-08

    Let me briefly say that this is a program that calls a recursive function, and the recursive function can see the final recursive exit according to the law, which is when n=1, that is to say, f(a, 1) is the exit of this recursive program, and f(a, 1) gives t = 8

    The return value of f(a, 1) is brought into f(a, 2) to give t = 8f(a, 2) and the return value of f(a, 2) is brought into f(a, 3) to get t = 9....f(a, 7) brings in f(a, 8) to get t = 9f(a, 8) and f(a, 8) to get 9 If you want to have a theoretical understanding, you first have to have an understanding of the definition of recursion, which you can refer to, and then the stack operation of functions, which you can learn with a little effort.

    The approximate stack looks like this after pressing the stack, and the stack is from top to bottom f(a, 1).

    f(a, 2)

    f(a, 3)

    f(a, 4)

    f(a, 5)

    f(a, 6)

    f(a, 7)

    f(a, 8)

    f(a, 9)

    printf()

    main()

  3. Anonymous users2024-02-07

    The essence is to find the largest number in the array.

  4. Anonymous users2024-02-06

    Recursion is a bit of a hassle, I'll take a look.

  5. Anonymous users2024-02-05

    It's normal that you can't understand this IQ!

  6. Anonymous users2024-02-04

    There are many types of errors that can occur with a program. For example: grammatical errors, hidden unknown errors, etc.

    Syntax errors are the easiest to eliminate, in C for example, for example: int num = 10, if a semicolon is missing after the statement, then the compiler will report an error (the correct statement should be:

    int num = 10 ;But hidden unknown errors, then it is very difficult to debug, if you do not have rich programming experience, then when the program fails, it is difficult to debug, such as the following program**:

    void main( )

    Errors like those in this program are correct when checked logically: first enter two floating-point numbers from the keyboard, and then output the result of dividing those two floating-point numbers.

    But one important judgment is missing from the program: the divisor cannot be zero!! As long as your divisor is not zero, then no matter how many times you test, the result is correct, but once the divisor is zero, for example, then the system will inevitably crash!!

    The compiler will never be able to detect errors like this, which requires rich programming experience and the rigor of writing a program.

  7. Anonymous users2024-02-03

    It is very encouraging that the Arab Cooperation Council for the Gulf States aims to achieve harmonization, harmonization and interconnectedness among the Gulf States in any field that can lead them towards reunification, as well as the effective coordination and harmonization of the economic, fiscal and monetary policies of the Gulf States, as well as the management of commercial, industrial and customs matters, in accordance with the objectives set out in the GCC Economic Agreement. and the desire to achieve greater coordination and cooperation among the Gulf States in the standardization norms, through this concept of (coordination and cooperation), to unify their management and to unify the control of the GCC Supreme Soviet (22nd Session, Muscat (Omani capital), Oman, 30-31 December 2001) in the transition from the Saudi Arabian Standards Organization (SASO) to the Gulf Organization, Implementation of the decision to establish a standardization organization for the Arab Cooperation Council for the Gulf States (GSO).

    This translation into Chinese is also awkward. A lot of sentences are upside down, and a simple analysis is underway.

    In general, the first word inspired dominates the whole text, that is, the content of the whole text, and "we" are all inspired.

    Because there is no full stop in the whole text, each comma is connected with an and.

    In the first paragraph, the main body is, to: Yes. as the goal.

    In the second paragraph, the main body is based on. Target. Effective harmonization is required. Policy, management.

    In fact, I feel that Chinese and English are completely two languages, and some things can only be understood but not spoken=

  8. Anonymous users2024-02-02

    The comma "," in the C language is also an operator, called the comma operator. Its function is to connect two expressions to form an expression, called a comma expression.

    Its general form is: Expression 1, Expression 2 The evaluation process is to find the values of the two expressions separately, and the value of expression 2 is used as the value of the entire comma expression.

    void main()

    a<--2,b<--4,c<--6,x<--0,y<--0

    x<--a+b,y<--b+c

    In this case, y is equal to the value of the entire comma expression, which is the value of expression 2, and x is the value of the first expression. There are two more points to be made about comma expressions:

    1.Expressions 1 and 2 in the general form of comma expressions can also be comma expressions. For example:

    Expression 1, (Expression 2, Expression 3) creates a nested situation. Therefore, the comma expression can be extended to the following forms: Expression 1, Expression 2, ,...The value of the entire comma expression of expression n is equal to the value of expression n.

    2.When a comma expression is used in a program, it is usually necessary to find the value of each expression within the comma expression separately, and not necessarily the value of the entire comma expression.

    3.Not all commas are formed in comma expressions, for example, in variable descriptions, commas are only used as spacers between variables in the function parameter table.

    Pure hand-hitting, please adopt, thank you

Related questions
9 answers2024-05-08

let'The difference between s and let us is not that the content package referred to by us does not include the speaker, but the package does not include the obedient person. let'The us in s refers to the speaker and the listener as a whole, while the us in let us simply refers to the speaker. Here's a simple example: >>>More

9 answers2024-05-08

use value.

Exchange Value Transaction Value. >>>More

9 answers2024-05-08

I think this is the idea of making this thing closer to the user. As far as local has the meaning of local, make local to make localization here according to the contextual meaning, that is, this thing is simpler and closer to the user. I don't know if I'm thinking right......

19 answers2024-05-08

The landlord understands wrongly, first of all, you have to figure out the components of foreign exchange and the foreign exchange market. >>>More

7 answers2024-05-08

Actually, there is nothing like this. Easy to use. If you don't understand him, understand him! Then you will slowly understand. There is nothing too absolute about this kind of thing, saying that it is not understood or understood. I'll understand it after a long time. >>>More