-
C will not be outdated, just like the compilation, although it is not as popular as C++ C now, but if you can master this thing, it is definitely a hot item, and it is a ** hot item.
-
It's really hard to say, maybe C is really useless for many people, but that sentence will never go out of style: "Learn C well and don't worry about running out of food for the rest of your life".
-
Let's learn how much you want to pay for your annual salary.
-
C is really outdated in high-level applications, because it's too cumbersome to write your own functions for whatever you want to accomplish.
However, the proximity to assembly of C language is more suitable for embedded development, and there is room for development.
-
C is not outdated, and now a lot of maintenance still uses C, but if you have time to learn C++, you can still learn it.
-
C++ is already a basic language, although the effect is different, but now there is C at the top.
-
C language is the basis of the program, how can it be outdated?
-
Categories: Computer Networking >> Programming >> Other Programming LanguagesProblem Description:
Need to be detailed.
Analysis: C++ is a direct evolution of the C language. Originally, this language was not called C++, but C with class, which was due to the fact that C was the leader in the programming world at that time, and the most powerful competitor to develop a new language was C, so there were two issues that attracted the most attention at that time
C++ should be comparable to C in terms of runtime, compactness, and data tightness, but it should also try to avoid the limitations of language applications. In this case, a natural idea would be to have C++ inherit from C, but Dr. Bjarne was more prescient and consulted many languages in order to avoid the limitations of C, such as Simula inherited the concept of classes, Algol68 inherited operator overloading, references, and the ability to declare variables anywhere, comments from BCPL, templates and namespaces from ADA, CLU and ML took the exception.
So C++ and C are almost completely different things, C is process-oriented, C++ is object-oriented, the two are not comparable at all, the only thing that is the same is that C++ maintains the representation and beauty of the C language.
It's not impossible if your teacher on the second floor really said this, because many people don't know, but it's too irresponsible to teach others like this! It's just a mistake.
-
Your program won't get the result you want, i.e. it won't output the input array in reverse order.
The reason for this is that even though you enter ten numbers, none of them are stored in array a. So, even if you output in reverse order, you won't be able to see any of the numbers you just entered.
In addition, your assignment statement assigns the last value you entered to the non-existent a[10] element in the only execution.
The reason for this problem is that the program does not enter one and save one, and the assignment statement is not in the loop!
The modification method is to enclose the two lines of the input statement and the assignment statement in curly braces as a loop of the for statement. See image below
Correct procedure (note the added pair of red curly braces).
-
Your problem is not very clear, it is not very clear what kind of problem you are experiencing.
Here is a rough description of the logic of **, this ** actually does not let the numbers in the array be stored in reverse order, but the positive order input, and then the reverse order output, the order of the numbers in the array has not changed.
** actually means that you first define an array of 10 lengths.
Then when entered, it is from a[0], a[1].a[9] is input in turn, and when output, it is from a[9], a[8].a[0] is output in reverse, and does not change the order, the order is still the same order, but it is read backwards when output.
-
Language Chinese Network has launched tutorial classes, including C language tutoring class, C++ tutoring class, algorithm data structure tutoring class, all of which are one-on-one teaching: one-on-one tutoring + one-on-one Q&A + assignment + project practice +
-
scanf statement with a[i]=.It should be enclosed with {}, and the other two statements can be combined into a single statement, i.e. scanf s("%d",&a[i])
-
Your for loop should be bracketed with a[i] =x; , otherwise it would be meaningless.
for(i=0;i<=9;i++)
-
Wrap the block of statements in curly braces. The two sentences in the first for loop are wrapped in a pair of curly braces, try again.
-
There are two errors in this program, first, according to what you mean is that the number after reading is put into the array, but the first loop does not write curly braces, so the statement that causes the loop is only read in the statement, not in the array. A pair of curly braces should be added to enclose the two statements that are read in and stored in the array. Second, the problem requires that you change the order in which the elements in the array are stored, and the program you write only changes the order of the output, but the storage position of the elements in the array does not change.
-
This issue occurs due to an incorrect setting. The solution and detailed operation steps are as follows:1. First, use the warning of the undeclared identifier "p", which means that there is an unrecognized p here
-
C language is highly efficient, widely applicable, is a classic programming language, will not be outdated.
Advantages: Simple, compact, flexible and convenient.
There are only 32 keywords and 9 control statements in the C language, and the program is written in a free and case-sensitive manner. Combine the basic structure and sentences of a high-level language with the usefulness of a low-level language. Like assembly language, the C language can manipulate bits, bytes, and addresses, which are the most basic units of work of a computer.
Operators are abundant.
The C language has a wide range of operators, with a total of 34 operators. C treats parentheses, assignments, castings, etc., as operators. As a result, the C language has extremely rich operation types and diversified expression types.
The flexible use of various operators can be used to achieve operations that are difficult to achieve in other high-level languages.
Rich data types.
The data types of C language are: integer, solid, character, array, pointer, struct, and share. It can be used to realize the operation of various complex data structures.
And the concept of pointers was introduced to make the program more efficient. In addition, the C language has powerful graphics capabilities and supports a wide range of displays and drivers. And the calculation function and logical judgment function are powerful.
C is a structured language.
The distinguishing feature of structured languages is the separation of data and data, i.e. the various parts of the program are independent of each other except for the necessary exchange of information. This structured approach allows for a clear hierarchy of programs that are easy to use, maintain, and debug. The C language is provided to the user in the form of functions, which can be easily called, and have a variety of loops and conditional statements to control the flow of the program, so that the program is fully structured.
The syntax constraints are not too strict, and the degree of freedom in programming is large.
Although C is also a strongly typed language, its syntax is flexible, allowing for a great deal of freedom for programmers.
Allows direct access to the physical address to operate on the hardware.
Because C allows direct access to physical addresses and can operate directly on hardware, it has many of the functions of a high-level language and many of the functions of a low-level language, and is able to manipulate bits, bytes, and addresses like assembly language, which are the most basic units of work of a computer and can be used to write system software.
The quality of the generated target is high, and the program execution is efficient.
Generally only 10% to 20% less efficient than the goal ** generated by the assembler.
The scope of application is large and the portability is good.
One of the outstanding advantages of C is that it is suitable for a variety of operating systems, such as MS-DOS, UNIX, Microsoft Windows and Linux; It is also suitable for a wide range of models. C language is highly efficient, portable, and has strong data processing capabilities, so it is suitable for writing system software, 3D, 2D graphics and animations, and it is also a high-level language for numerical calculations.
To sum up, C will not become obsolete.
-
You don't know what you're saying, you have to learn C before learning other languages, and C has always been the most popular basic language.
Don't be stupid, we all live well, why do we have to influence each other? If you take that step that day, the consequences will be very serious, and I believe you have seen a lot of such things, but you will be confused just when it happens to you. It's normal for you to love his talents, every girl is like that, that's not love. >>>More
It is estimated that you are still very young, and it is normal that you have not formed your own independent thoughts and styles. It's the same as a writer, you first learn the basics through a lot of reading, try it at first, and then develop your own style. It's good that you can study people's every move now, but the next step is to predict the next move differently for different people, because of different personalities. >>>More
I envy you, maybe the man has long paid attention to you, you can try to accept it, the current concept of love is to have the courage to seize your own opportunities, giving others a chance is also equivalent to giving yourself a chance, so if you are not reserved, I don't think that some people in the countryside will get married in three days.
Remember, only He can give you the answer!
Asking here, in my personal opinion, will only make your heart more messy! (Life, like a lump of hemp, always has that little knots that can't be untied!) ) >>>More
You dumped this kind of stupid man, security guard, and he is not a very smart person.