I m new to learning C and I d like to ask you a question

Updated on society 2024-05-23
12 answers
  1. Anonymous users2024-02-11

    Not all functions have a return value.

    When no value is returned.

    The function type is defined as void

    Like what. void output()

    printf("welcome!");

    It doesn't have a return value.

    Sinusoidal function sin(x).

    It is a mathematical function defined in the system header file.

    The execution looks something like this, calling it, figuring out the result, and returning a value.

    It's the same as the function you define yourself.

    The same thing.

  2. Anonymous users2024-02-10

    If you count void as a return value, it's right that all functions have a return value.

    If the return value is void, we generally don't count it as having a return value, and we call this kind of function a procedure.

    If you've studied other languages like basic and pascal, not every language has the function process part of C.

  3. Anonymous users2024-02-09

    No, functions are in a broad sense, and this is a method, and execution is understood here as calling a function to complete a certain function.

    But some functions don't have a return value, such as empty type void

  4. Anonymous users2024-02-08

    Run: This is a necessary part of Windows, and we can simply understand it as a component that an application can quickly call. Functions have polymorphism

  5. Anonymous users2024-02-07

    You may be right, the return value of a function does not have to be assigned

  6. Anonymous users2024-02-06

    No, for example, the printf function is the output and does not return the value of the function.

  7. Anonymous users2024-02-05

    The difficulty of learning varies from person to person. For ordinary people, C++ is very difficult to learn by itself, because C++ needs to learn a lot of things and it is difficult, if you don't master the method of learning C++, you may only be able to get started in 1-2 years, but if you master the method of learning C++, you can learn C++ in half a year, but the average person has not been exposed to systematic method teaching, so it will be slow to master.

    Extended reading: The word C++ is usually pronounced as "C plus plus" in Chinese mainland programmer circles, while Western programmers usually pronounce it as "C plus plus", "cpp". It is a very widely used computer programming language.

    C++ is a general-purpose programming language that supports multiple programming paradigms with static data type checking.

    It supports a variety of programming styles such as procedural programming, data abstraction, object-oriented programming, and generic programming. The latest official standard, C++, was published on August 18, 2014. It has a wide range of programming fields, often used in system development, engine development and other application fields, and is one of the most powerful programming languages used by the majority of programmers so far

    Classes, packages, overloads, and more!

  8. Anonymous users2024-02-04

    The difficulty of learning varies from person to person, as the so-called will not be difficult for those who know, but those who are difficult will not.

  9. Anonymous users2024-02-03

    <><c. A summary of the basic knowledge of the language

    1. C language starter program hello world

    Note: In the latest C standard, the type before the main function is int instead of void

    2. The specific structure of the C language

    To put it simply, a C program is made up of a number of header files and functions.

    include is a preprocessing command that tells the C compilation system that it needs to do some preprocessing before compiling a C program.

    A function is a small unit that implements logic.

    3. The essential main function

    A C program has one and only one main function, the main function.

    The C program is the ** in the execution of the main function, and it can also be said that this main function is the only entry point in the C language.

    The int before main is the type of the main function.

    printf() is the format output function, so remember that its function is to output the specified information on the screen.

    return is the return value of the function, and the returned value is different depending on the function type.

    ln is a line break in the Convert Fiber Talk Answer Character. (Note: The C program must be executed from the main function).

    4. Good habit of writing

    A description or a statement occupies a line, for example, the end of an executable statement containing a header file requires that the statement in the body of the wrapping function should be significantly indented, usually by pressing the tab key as an indentation.

    Parentheses should be written in pairs, and if they need to be deleted, they should also be deleted in pairs, and when an executable statement ends, there needs to be a semicolon at the end, and all the symbols in ** are English half-width symbols.

    5. Annotate the program one by one

    Comments are written for programmers, not computers.

    There are two ways to annotate the C language:

    6. Basic operators of C language

    Note in the division operation:

    If both numbers are integers, then the result is also an integer, and the decimal part is omitted, e.g. 8 3 = 2 and one of the two numbers is a decimal, the result is a decimal, e.g. =

    Note in the remainder operation: This operation is only suitable for remainder operation with two integers, such as: 10%3=1

    The calculated symbols depend on the modulus symbols, e.g. vertical (-10)%3 = -1 and 10%(-3) = 1

  10. Anonymous users2024-02-02

    You can't waste free resources for applying for professional courses, or skip classes.

  11. Anonymous users2024-02-01

    The hardest part of the C language is the pointer, as long as you figure it out and study it carefully. I believe that as long as you take the time, you can learn well.

  12. Anonymous users2024-01-31

    C is a process-oriented language. From data types, basic expressions, to conditional statements, loop statements, and then learn functions, plus some simple array knowledge, practice each knowledge point several times, at this time, don't be greedy, you must understand the principle of things thoroughly.

Related questions
8 answers2024-05-23

What does a++ b++ mean?

Affixing ++ means that the value is returned first, and then it is incremented. >>>More

3 answers2024-05-23

Your current major is urban planning, and if you just learn hand-drawing, there are many places to learn, and if you are admitted to graduate school, you don't know what major you want to apply for. If you want to apply for the Dacheng Gui, then you can consider applying for Tsinghua University, Tongji University, you can go to Tsinghua University to see their hand-painting training, Tongji can take a look at Sandao. If you take into account the research direction, such as garden design, landscape design and other related directions, you can consider Beilin, Nanlin, (in 2011, Beilin's original urban planning and design major became a first-level discipline after the school's landscape architecture became a first-level discipline, the name of the major became landscape architecture) Kao Beilin will go to Beilin Teacher to run the master hand-painted, Kao Nanlin can also apply for this institution, after all, this major in these two schools is more powerful, and many teachers know, everyone's design concept and style are tacit, Because other institutions personally feel that the pertinence is not very large, they are all at the same time on their ** hanging student names and actual tutoring experience are different, so, I hope that more students who learn hand-drawn will compare more, study and investigate clearly before choosing, if you are in a hurry to let you register for class, you must be cautious!

16 answers2024-05-23

It's not interesting to go to Zhongbei to take the postgraduate examination, I originally studied military industry, and now I'm admitted to Beijing, looking at the original classmates are a little idle, a little mixed with time, or I advise you not to take the Zhongbei exam, the military major is better, and the result is still like that, not to mention the liberal arts, unless you are just for the certificate, but if you want to really just for the certificate, then I can tell you very responsibly, any major in Zhongbei can be, because you can get the certificate, I am a person from here, rest assured, I will not lie to you!

3 answers2024-05-23

Ask. But I found that the wealth value of the library is not shared with what I know... >>>More

7 answers2024-05-23

Take 500 grams of soybeans as an example.

Step 1: Soak the soybeans in cold water for 12 hours. >>>More