-
1, x = x<<1 is equivalent to x multiplied by 2, i.e., the string output in %d format can only output the integer part, that is, 0
2. When it comes to the scope of local variables, even though the local variable is out of its lifetime, the memory allocated for it on the stack at that time just won't change if no one rewrites it. Even if you define a function, the local variable in it is assigned and returned, and then check the memory address of the local variable in the function just now, the value in it is still there! It's just that the owner of this piece of memory has changed.
3, the first cycle if is established, so it is actually aa[0][1]=2+1=3; But the p value does not change, it still points to a[0][0] and then if is not true, p just points to the next element, and only outputs twice, that is, j=0 and j=1 twice, that is, aa[0][0] and aa[0][1].
4,n array is all assigned to the initial value of 0, you know? Then n[0]=n[0]+1=1; n[1]=n[0]+1=2;n[2]=n[0]+1=3;
n[0]=n[1]+1=3;n[1]=n[1]+1=3;n[2]=n[1]+1=4;
n[0]=n[2]+1=5;n[1]=n[2]+1=5;n[2]=n[2]+1=5;
Finally, the value of n[2] is output, i.e. 5! (Got a question with your topic, right?) Does the definition of an n[3] array have an n[3] element???
5, the function of the subfunction is that the third number is equal to the second number minus the first number, so a=5-10=-5
b=-5-7=-12
c=-12-(-5)=-7
-
b, can not be put, because the value of the number in the character is not itself, it is an ASCII code.
-
Choose d vb (i.e. assembly) structured high-level programming language.
-
What is not a high-level programming language is assembly language, which is any low-level language used for electronic computers, microprocessors, microcontrollers, or other programmable devices, also known as symbolic languages.
In assembly language, mnemonics are used instead of opcodes for machine instructions, and address symbols or designators are used instead of addresses for instructions or operands. In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process. Specific assembly language and specific machine language instruction sets are one-to-one correspondence and cannot be directly ported between different platforms.
Introduction to assembly language
Use some easy-to-understand and memorized letters, words to replace a specific instruction, such as: "add" for the logical addition and subtraction of numbers, "mov" for data transfer, etc., through this method, people are easy to read the completed program or understand the function that the program is performing, and the bug fixing and operation and maintenance of the existing program have become easier and more convenient.
However, the computer's hardware does not recognize the letter symbols, so a special program is needed to turn these characters into binary numbers that the computer can recognize.
Because assembly language is only a simple compilation of machine language, it does not fundamentally solve the specificity of machine language, so assembly language is closely related to the machine's own programming environment, and it is difficult to promote and transplant, but it still maintains the excellent execution efficiency of machine language.
-
Programs written in high-level programming languages are calledSource program
A source program is a human-readable text file that is uncompiled and written in accordance with a certain programming language specification. Usually written in a high-level language.
source program", referring to the program represented by binary ** as the "target leak program". In order to convert the source program into a target program acceptable to the machine, the software worker creates a series of software that can translate the user's sentences written by the user into binary machine instructions according to the prescribed syntax.
A high-level programming language is a set of instructions as opposed to a machine language.
system. This instruction set, called machine code, is data that can be directly interpreted by the computer's CPU). It is a highly encapsulated programming language.
As opposed to low-level languages.
It is a programming language based on the everyday language of human beings, using words that are easily accepted by ordinary people (e.g. Chinese characters, irregular English or other foreign languages), so as to make it easier for programmers to write and have higher readability, so that people with little computer knowledge can roughly understand its contents.
-
Answer]: BB [Solution] In option A, the high-level language must be translated into machine language before it can be executed by the computer; In option C, the execution efficiency of the high-level language is low, and the readability of the stool is good. In option D, the high-level language does not depend on the computer, so it is portable. Therefore, option b is correct.
-
Programs written in high-level programming languages are readable, but cannot be executed directly by machines.
The high-level programming language is more readable and can easily express the functions of the program, but because the high-level programming language is a compilation language, its running speed is lower than that of the assembler, and because the high-level language is more verbose, the execution speed of ** is also slower.
In addition, the architecture of the high-level programming language is higher than that of assembly, and it is not possible to write system programs that directly access hardware resources, so the high-level programming comma language must call the program written in assembly language to access the hardware address.
If the landlord is looking for the textbook for the class, it is not helping the landlord, the book is not good, and no one has to do the electronic version. >>>More
"VFP Programming" or VFP or Object-Oriented Database Management System for short will allow you to create an artistic enterprise database solution. >>>More
There are several books on the market called "IBM-PC Assembly Language Programming". >>>More
You have to look at **", not memorize**, but you also have to learn the basics of the C language. If you don't even know ABCD, how can you read English**? Reading more about what others write is something you do after you have a certain foundation. >>>More
Everyone knows that the difference between a low-level programmer and a high-level programmer is that the high-level programmer writes more concisely, and the coding speed is fast, and there are almost no bugs. It is said that the most important thing for low-level programmers and senior programmers is because of the gap in the number of knocks, and the number of senior programmers is more. >>>More