C annotation, what is the C annotation symbol?

Updated on technology 2024-05-11
7 answers
  1. Anonymous users2024-02-10

    #include

    int main()

    int n,t,i,pro;Define variables.

    long m;

    scanf("%d",&n);Enter a value and assign it to the nwhile(n--) loop, subtract 1 for each loop, and exit the loop when n is equal to 0.

    pro=1;pro is assigned to 1

    scanf("%ld",&m);Enter a value and assign it to mt=(m-1)%4; The value of m-1 modulo 4 is assigned to t (the remainder of m-1 divided by 4 is assigned to t).

    m=m%10;The value of m-modulo 10 is assigned to m

    for(i=0;i<=t;i++) cycle with i<=tpro*=m; Each cycle pro=pro*mprintf("%d",pro%10);The value of the output mode 10 is output.

    return 0;Return 0

  2. Anonymous users2024-02-09

    I don't understand what this short ** is for!!

    #include

    int main()

    int n,t,i,pro;

    long m;

    scanf("%d",&n);

    while(n--) to enter multiple numbers.

    pro=1;

    scanf("%ld",&m);Enter the number for each.

    t=(m-1)%4;Subtract the input to the remainder of 4.

    m=m%10;

    for(i=0;i<=t;i++) Find the remainder of 10 and multiply each remainder by t times.

    pro*=m;

    printf("%d",pro%10);Then multiply each remainder by t times to find out what the single digit is.

    return 0;

  3. Anonymous users2024-02-08

    c The annotation symbol for the language is ".There are generally two types of annotators in the C language, one is a paragraph annotator that starts with ", adds the annotation content in the middle, and ends with ". A comment is between and . The other is a single-line annotator that starts with " and is followed by the annotation content.

    The one after " is the comment.

    Introduction:

    Annotators for C are strings that start with "* and end with ". A comment is between and . When the program is compiled, no comments are processed. Comments can appear anywhere in the program.

    Annotations are used to prompt or explain the meaning of the program to the user. In the debugger, you can also enclose annotations in the statements that are not used temporarily, so that the translation is skipped, and the annotators can be removed after the debugging is completed.

  4. Anonymous users2024-02-07

    * is the starting identifier for C annotations.

    In C, you can use * as the beginning and end identifier of the annotation text, and the text in between * and * will not be processed by the compiler, but will only be made available to others to read.

    and * can be on a separate line.

    Annotations cannot be used nested, i.e. between * and *, no other * and * can appear.

  5. Anonymous users2024-02-06

    There are two forms of annotation in the C language, and the annotation does not involve anything.

    Note: Written for programmers to facilitate communication between programmers1The note is not a reference to the shed state block with the compilation of 2

    Multi-line comments can be nested with single-line comments3Single-line comments can be nested with multi-line comments4Multi-line comments cannot be nested in multi-line annotations

    1.2The debugger's time-chain is a single-line comment and a multi-line comment

  6. Anonymous users2024-02-05

    1. You can use the * and * separators to annotate comments in one line, or annotate comments in multiple lines. For example, in the following function prototype, the ellipsis means that the open() function has a third argument, which is optional. The note explains the use of this optional parameter:

    int open( const char *name, int mode, …/* int permissions */ );

    2. You can use to insert a whole line of comments, or write the source ** into a two-column format, the program is in the left column, and the comments are in the right column:

    const double pi = ;pi is a constant.

  7. Anonymous users2024-02-04

    Generally speaking, there are two types:

    The first is a single-line comment: add it directly where the line needs to be commented"//"That's it. For example:

    int a,b;This is a comment line"。So,"//"Later sections"This is a comment line"It was commented out and didn't work, but"//"The preceding "int a,b; "Not affected.

    There is also a multi-line simultaneous annotation:

    int a,b;

    int c,d;

    among others"/*"with"*/"Statements in the scope will be commented out and will no longer work. Of course, multi-line comments can also be used for single-line comments.

Related questions
10 answers2024-05-11

You start by writing a function to find a sequence.

Then use for or while to call the !! >>>More

12 answers2024-05-11

The following are the structural features of the C language,1A C source program can consist of one or more source files. >>>More

16 answers2024-05-11

Definition of a for loop.

for(the initial value of the variable; termination of operating conditions; The initial value of the first cycle i is 0, and it runs until i=3 stops i=2, and the condition is still satisfied, and the loop body is still executed, and the step size is 1+1 each time >>>More

9 answers2024-05-11

Hey! This is a very simple function to write, Your Excellency is estimated to have just learned data structures, now learn sorting, lookup, it's easy to give me a reward of two hundred points, I'll help you write it right away. >>>More

8 answers2024-05-11

I thought about it for a long time and didn't come up with it. >>>More