C Parameter Passing Problem Urgent, what are the ways in which the parameters of the method in C can

Updated on technology 2024-05-13
5 answers
  1. Anonymous users2024-02-10

    string names=',');Split the string by the "," sign.

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

    ;Get the value of your split string.

  2. Anonymous users2024-02-09

    Is it winform or.

    If it's a page. string name = "1,2,3,3,4";

    Page B. string name = "name"];

  3. Anonymous users2024-02-08

    I think you should make the problem clearer so that it can better help you solve it!

  4. Anonymous users2024-02-07

    The arguments of the method in c can be passed in three ways, as follows:

    1. Pass in a one-digit array of size 2 to pass the maximum and minimum values.

    using system;

    using ;

    using ;

    using ;

    class program

    static void main(string args)program p = new program();

    int maxa = 0,mina =0;

    int array = new int[5];

    int array2 = new int[2];

    array2);

    The maximum value is:" + array2[0]);

    The minimum value is" + array2[1]);

    public void getmaxandmin(int array,int array2)

    int max = array[0];

    int min= array[0];

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

    p);The maximum value is and the minimum value is", ,public void getmaxandmin(int array,program p2)

    int max = array[0];

    int min= array[0];

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

    ref max1, ref min1);

    The maximum value is and the minimum value is",max1, min1);

    public void getmaxandmin(int array, ref int max,ref int min)

    max = array[0];

    min = array[0];

    for (int i = 0; i < i++)if (array[i] >max)

    max = array[i];

    if (array[i] min = array[i];

  5. Anonymous users2024-02-06

    Let's put it simply.

    Parameter passing, if it is passed by value, then the object is copied to the function once.

    If you pass by reference, then you can simply copy the address of the object.

    For C.

    All structs (i.e. struct-defined) are copied by value, and if you change that parameter in a function, the arguments don't change.

    For example, change(char p) if the p parameter is changed in change.

    Then char a = a';

    change( a );

    This a variable will not be changed.

    Conversely, passing by reference is characterized by fewer copying operations.

    All structs (i.e. struct-defined) are copied by value, and if you change that parameter in a function, the arguments don't change.

    For example, change(point p) if the p parameter is changed in change.

    then point a = new point();

    change( a );

    When you change a member function in function a, a also changes.

Related questions
3 answers2024-05-13

statement in the defined variables!

9 answers2024-05-13

Use the byval keyword to indicate that the parameter is passed by value, but your first argument is written by byref, which is passed by address, and the second argument is written at nothing, and it is also passed by address by default.

16 answers2024-05-13

c Parameter defaults are not supported, and if you want to implement the same functionality, you can use the method of function overloading to simulate the implementation. Such as: >>>More

6 answers2024-05-13

This thing is basically useless.

va_list arguments; >>>More

8 answers2024-05-13

2D array address - > row address - > column address (variable address) - > variable value, or excerpt a description for you. >>>More