C master, help! 5, C master, help!

Updated on number 2024-08-06
7 answers
  1. Anonymous users2024-02-15

    If you're just thinking about using the least number of secondary storage units, it's not difficult, but I'll give you an example here

    main()

    int a[5]=;

    int *p=a,m;

    int i,j;

    for(i=0;i<5;i++)

    printf("%5d",a[i]);

    printf("");

    for(i=4,j=0;i>=5/2;i--,j++)m=p[i];p[i]=p[j];p[j]=m;}for(i=0;i<5;i++)

    printf("%5d",a[i]);

    Hope it helps.

  2. Anonymous users2024-02-14

    d=a==b?++b:++c

    Depending on the priority, this is an assignment statement.

    i.e. d=? a==b?++b: ++c is a trinocular operation.

    According to the change a, the value of b a==b is false, then execute ++c, that is, c=8;

    Finally, d=8;

  3. Anonymous users2024-02-13

    d=a==b?++b:++c

    It's an assignment expression that I can't read.

    First, ++b=4

    b?++b:++c=4

    It becomes d=a==4

    I don't understand the back.

  4. Anonymous users2024-02-12

    ++, which takes precedence over +=, *=

    y=18,z--=8,++y-z--=10;

    x*=10, so x=x*10=1*10=10;

    Then x+=10, x=x+10=10+10=20;

    So the last value in parentheses is 20

    x=20, and assign x to 20, so x=20

  5. Anonymous users2024-02-11

    20 first calculate ++y-z--, to figure it out, ++y is to increase 1 first, and then calculate; z--is to participate in the operation first, and then subtract 1; ++y is 18 and z is 8; 18-8=10

    Assignment operators *=, +=, -=, etc., the binding direction is from right to left, so first calculate x*=10 (just calculated 18), 10*1=10.

    Then calculate x+=10 to get 20

  6. Anonymous users2024-02-10

    x-square-3x+2>0, i.e. (x-1)(x-2)>0

    ax square -3ax is greater than or equal to 0, that is, ax (x-3) is greater than or equal to 0

  7. Anonymous users2024-02-09

    0=10+at

    10=10t+(1/2)at²

    Synopid 10 = 10t + (1 2) t * (-10) to get t = 2

    Substituting yields a=-5

    That is, the acceleration is -5 m s.

    Set the time of 8 meters to be x

    8=10x+(1/2)*(5)x²

    That is, 5x -20x + 16 = 0

    The solution is x=(10 2 5) 5

    and t is up to 2

    So x=(10-2 5) 5

    Answer: The time it takes to glide 8 meters is (10-2 5) 5

Related questions
8 answers2024-08-06

#include

main() >>>More

6 answers2024-08-06

1. Who or whom did with

2、no money house >>>More

8 answers2024-08-06

At this price, you can accompany a good LCD case no matter how you go

12 answers2024-08-06

Mine is also brushed like this, I don't know what to do.

9 answers2024-08-06

Hello, I also have the experience of high recovery. In my personal opinion, you should work your weak subjects, do more exercises, and sum up experience. I especially recommend that you carefully study the college entrance examination papers across the country in the past three years, carefully compare your answers with standard answers, and you should not relax in your strong subjects, so as not to improve in your weak subjects in the college entrance examination next year, but the subjects you were originally good at will drag you back. >>>More