c c practice questions, come in and help

Updated on educate 2024-05-14
2 answers
  1. Anonymous users2024-02-10

    16 When calling a function, if the argument is an array name, then (b) is passed to the function.

    The length of the array a The first address of the array b.

    The address of each element in the c array The value of each element in the d array.

    17 According to the following definition, the statement that can output the character 'a' is (b).

    struct person

    char name[10];

    int age;

    class[10]=;

    a.printf(“%c”,class[3].name[1]);b.printf(“%c”,class[2].name[0]);

    c.printf(“%c”,class[3].name[0]);d.printf(“%c”,class[2].name[1]);

    The purpose of the 18 break statement is (c).

    a skips the next phrase b b. jumps out of the program.

    c Jump out of this loop and no longer execute the loop d is an empty statement and does nothing.

    19.Procedure (c) below.

    main( ) * line 1 *

    int a[3]=,i;Line 2

    for (i=0 ;i<3 ;i++)scanf(“%d”,&a[i]);Line 3

    for (i=0 ;i<4 ;i++)a[0]=a[0]+a[i];Line 4

    printf (“d”,a[0]);Line 5

    Line 6 *

    A There is no error B There is an error in line 2 C There is an error in line 4 D There is an error in line 6.

    20 The meaning of the execution function fopen ("w+") is (c).

    A opens a file as a read and B opens a file as a write.

    c Create a file that is both readable and writable d Create a writable file only.

    21.When you define a shared size variable, the number of bytes of memory allocated to it is (a).

    a The number of bytes occupied by the member who shares the size variable, the member with the largest number of bytes.

    b The number of bytes occupied by the member with the least number of bytes among the members who share the body size variable.

    c The sum of the bytes occupied by all members of the common body shape variable.

    d The sum of the bytes occupied by all members of the common size variable is added by 1

    22 The function of the continue statement is (c).

    A skips the next statement b b. Jumps out of the program.

    c Jump out of this loop and execute the next round of the loop d is an empty statement and does nothing.

  2. Anonymous users2024-02-09

    Each cycle x[n] is added once, then count the number of s[k] elements, 0 0, 4 1, 2 2, 2 3.

    So it's 0 4 2 2

Related questions
7 answers2024-05-14

Candle Wu retreated from the Qin Division. In 204 BC, when the Chu and Han were fighting, Li Shiqi suggested to Liu Bang: "The Chu and Han wars have been fighting for a long time, so that the people are in turmoil, the sea is turbulent, and the people are uneasy. >>>More

14 answers2024-05-14

You go to the hospital and see what the doctor says.

Upstairs he said: It shouldn't be a big problem, but I think it's not a big deal. >>>More

6 answers2024-05-14

Ask a friend to find out when he will come back, the information should be accurate, don't be busy calling him **, not to mention that you will pick him up, so that he will naturally think of you: Why don't you call me **? Why didn't you come and pick me up? >>>More

12 answers2024-05-14

You ask for 5-70,000 cars, mainly in Xiaqi County, I suggest you buy a Jetta more than 60,000 points, a full set of tags on the road needs about 75,000, that car is fuel-efficient, cheap, accessories are also cheap, after-sales points are also more, China don't think about it, China is a small horse-drawn cart. Of course, it costs gas. The Jetta is a German Volkswagen machine, and you won't have a big problem driving it for 10 years or 8 years. >>>More

8 answers2024-05-14

My advice: make sure it doesn't interfere with your studies, be friends with him and try to get to know him! Then let's see if you're a good fit! >>>More