C ++, C #, and pointer

Source: Internet
Author: User
What is the problem?
Shortly after getting started with C #, the difference between the value type and the reference type is still a bit confused. After looking at a swap () (as shown in the following example) method that cannot work, we can find that the reference type is actually equivalent to the pointer in C/C ++-because there is a declaration: "string astr = NULL;" is correct. In order to allow myself to trace it back, write down today's understanding here.

How to understand

The definition of reference type in C # is as follows:
"…… The basic difference between the value type and the reference type is that they are stored in memory ....... The address of the referenced type variable is stored on the stack, but the actual object is stored on the stack ......."

In the previous article Article As I said, the pointer is actually a ulong. From the above description, we can see that the reference type is actually a ulong (address), that is, in "Object OBJ, OBJ is divided into two parts, one is its address and the other is the real object instance. These two parts are closely linked to form a reference type object.

The definition of the reference type implies that the reference type in C # is equivalent to the pointer of C ++, but the C # language itself does some work, the pointer is closely linked with the object it points. However, we cannot obtain this value through forced type conversion-Maybe, but I don't know how to compare it. In addition, the definition of the reference type implies that the parameter passing rule is equally valid in C # When a C/C ++ function is called. The simplest example:
// C # code. Non dereferencing.
Public void swap <t> (t lhs, t RHs)
{
T temp = LHS;
LHS = RHS;
RHS = temp;
}
What is the result of calling this function? Run the following commands: Code The result is as follows: the object of the referenced type is not changed at all (taking string as an example ):
String A = "aaaa ";
String B = "BBBB ";
Swap <string> (A, B );
System. Console. writeline ("A =" + A + ", B =" + B );
Output result: a = AAAA, B = BBBB

Because the operation is actually performed on the address, the input parameter is the address, so it can be translated into C ++ (for convenience, use the int type ):
// C ++ code. Non dereferencing.
Template <class T>

Void swap (T * LHS, T * RHs)
{
T * ptemp = LHS;
LHS = RHS;
RHS = ptemp;
}
This function cannot achieve the purpose of switching real parameters, because the operation here is the address, just like in the previous example. That is to say, when calling functions in C/C ++ and C #, parameters are passed by passing values.
 
So why is it not similar to C ++ references? You can see the following code:
// C ++ code
Template <class T>

Void swap (T & LHS, T & RHs)

{
Int temp = LHS;
LHS = RHS;
LHS = temp;
}
The call to this function correctly exchanges two real parameters.
 
C # There are two ways to modify an object of the reference type through function call:
1. dereference this reference is used to obtain the actual object, that is, to change the object stored on the stack, rather than the address stored on the stack (no dereference is performed ), this is the same as the pointer of C ++, which is also explained in the previous two examples. If deference is used, and t implements the copy method, the implementation is as follows:
// C # code. dereferencing.
// Note: T must have copyto () method.
Public void swap <t> (t lhs, t RHs)
{
T temp = new T ();
LHS. copyto (temp );
RHS. copyto (LHS );
Temp. copyto (RHs );
}
The following code is translated into C ++:

// C ++ code. dereferencing.
// Note: T must have operator "=" overloaded.
Template <class T>

Void swap (T * LHS, T * RHs)
{
Int temp = * LHS;
* LHS = * RHS;
* RHS = temp;
}

2. Use the ref modifier (from another point of view, the reference behavior of c # is more like the pointer of C ++), as shown below:
// Swap that can work
// Note: T doesn' t need to have copyto () method implemented.
// If you don't need to modify the reference itself, "Ref" is not needed.
Private void swap <t> (ref t LHS, ref t RHs)
{
T temp = LHS;
LHS = RHS;
RHS = temp;
}

The reason is very simple. After using ref, translate it into C ++:
/C ++ code. dereferencing.
// Note: T doesn' t need to have operator "=" overloaded.
Template <t>
Void swap (T ** LHS, t ** RHs)
{
T * temp = * LHS;
* LHS = * RHS;
* RHS = temp;
}

As for whether to use references or pointers, this is another topic. For pointer itself, refer to "pointer is a shortcut to hell ".

PS: because the level of C # is too small, it is inevitable that there will be deviations in understanding. please correct me for any errors! The preceding code is valid.

Refer:
Programming C #, 3rd edition.
Msdn: generic methods (C # programming guide)

 

Chapter 1 of the C ++ pointer Concept. Pointer Concept

A pointer is a special variable. The value stored in it is interpreted as an address in the memory.

To understand a pointer, we need to understand four aspects of the pointer: the pointer type, the pointer type, the pointer value, or the memory zone pointed by the pointer, there is also the memory zone occupied by the pointer itself. Let's explain it separately.
First, declare several pointers for example:

Example 1:
(1) int * PTR;
(2) char * PTR;
(3) int ** PTR;
(4) int (* PTR) [3];
(5) int * (* PTR) [4];
If you do not understand the last few examples, refer to the article I posted earlier

1. Pointer type.
From the syntax perspective, you only need to remove the pointer name in the pointer declaration statement, and the rest is the pointer type. This is the type of the pointer. Let's take a look at the type of each pointer in Example 1:
(1) int * PTR; // the pointer type is int *
(2) char * PTR; // the pointer type is char *
(3) int ** PTR; // the pointer type is int **
(4) int (* PTR) [3]; // the pointer type is int (*) [3]
(5) int * (* PTR) [4]; // the pointer type is int * (*) [4]
How is it? Is it easy to find the pointer type?

2. The type to which the Pointer Points.
when you use a pointer to access the memory area pointed to by the pointer, the type of the pointer determines what the compiler will treat as the content in the memory area. In terms of syntax, you only need to remove the pointer name and the pointer declarative * on the left of the name in the pointer declaration statement, and the rest is the type pointed to by the pointer. For example:
(1) int * PTR; // The Pointer Points to an int type
(2) char * PTR; // The Pointer Points to a char
(3) int ** PTR; // The Pointer Points to an int *
(4) INT (* PTR) [3]; // The type pointed to by the pointer is int () [3]
(5) int * (* PTR) [4]; // The type pointed to by the pointer is int * () [4]
In the arithmetic operation of the pointer, the type pointed to by the pointer has a great effect. The pointer type (the pointer type) and the pointer type are two concepts. When you get familiar with C, you will find that, the concept of "type", which is mixed with pointers, is divided into two concepts: "pointer type" and "pointer type", which are one of the key points of mastering pointers. I have read a lot of books and found that some poorly written books bring together the two concepts of pointers. Therefore, the books seem to have conflicts and become more confused.

3. The pointer value, or the memory zone or address pointed to by the pointer.
The pointer value is the value stored by the pointer itself. This value will be treated as an address by the compiler rather than a general value. In 32-bitProgramAll types of pointer values are a 32-bit integer, because all the memory addresses in the 32-bit program are 32-bit long. The memory area pointed to by the pointer starts from the memory address represented by the pointer value, and the length is a memory area of sizeof (type pointed to by the pointer. Later, we will say that the value of a pointer is XX, which means that the pointer points to a memory area with xx as the first address. We will say that a pointer points to a memory area, it is equivalent to saying that the pointer value is the first address of the memory area. The memory zone pointed to by the pointer and the type pointed to by the pointer are two completely different concepts. In example 1, the pointer points to a type that already exists, but since the pointer has not been initialized, the memory zone it points to does not exist, or it is meaningless. In the future, every time you encounter a pointer, you should ask: What is the type of this pointer? What type is the pointer pointing? Where does this pointer point?
4. The memory occupied by the pointer.
How much memory does the pointer occupy? You just need to use the sizeof function (pointer type) to test it. On a 32-bit platform, the pointer occupies 4 bytes. The memory occupied by pointers can be used to determine whether a pointer expression is left.

Chapter 2 arithmetic operations of pointers

The pointer can be added or subtracted from an integer. The meaning of this operation of pointer is different from that of addition and subtraction of common values. For example:

Example 2:
1. Char A [20];
2. Int * PTR =;
...
...
3. PTR ++;
In the preceding example, the pointer PTR is of the int type * and it points to the int type. It is initialized to the integer variable. In the next 3rd sentences, the pointer PTR is added with 1, and the compiler processes it like this: it adds the value of the pointer PTR with sizeof (INT), in a 32-bit program, is added with 4. Because the address is in bytes, the address pointed by PTR is increased by four bytes from the address of the original variable A to the high address. Because the length of the char type is one byte, the PTR originally points to the four bytes starting from Unit 0th of array, this point points to the four bytes starting from Unit 4th in array.
We can use a pointer and a loop to traverse an array. For example:

Example 3:
Int array [20];
Int * PTR = array;
...
// The code for assigning values to integer arrays is omitted here.
...
For (I = 0; I <20; I ++)
{
(* PTR) ++;
PTR ++;
}
In this example, the value of each unit in the integer array is added to 1. Since every loop adds the pointer PTR to 1, each loop can access the next unit of the array.
Let's look at the example:

Example 4:
1. Char A [20];
2. Int * PTR =;
...
...
3. PTR + = 5;
In this example, PTR is added with 5, and the compiler processes it like this: add the value of the pointer PTR to the value of the 5-bysizeof (INT ), in the 32-bit program, 5 is multiplied by 4 = 20. Because the address unit is byte, the current PTR points to the address, compared to the address pointed by the PTR after the addition of 5, move 20 bytes to the high address. In this example, if the PTR before 5 is not added, it points to the four bytes starting with unit 0th of array A. After 5 is added, the PTR points out of the valid range of array. Although this situation may cause problems in applications, it is possible in terms of syntax. This also reflects the flexibility of pointers. If in the above example, PTR is subtracted from 5, the processing process is similar, except that the PTR value is subtracted from 5 by sizeof (INT ), the new PTR points to an address that moves 20 bytes to the lower address direction than the original PTR.

To sum up, after a pointer ptrold is added with an integer N, the result is a new pointer ptrnew. The type of ptrnew is the same as that of ptrold, ptrnew points to the same type as ptrold. The value of ptrnew will be increased by N multiplied by sizeof (type pointed to by ptrold) bytes than the value of ptrold. That is to say, ptrnew will point to a memory area that moves n byte by sizeof (type pointed by ptrold) to the high address direction than the memory area pointed to by ptrold. After a pointer ptrold is subtracted from an integer N, the result is a new pointer ptrnew. The type of ptrnew is the same as that of ptrold, and the type of ptrnew is the same as that of ptrold. The value of ptrnew will be less than the value of ptrold by N multiplied by sizeof (type pointed to by ptrold) bytes, that is, the memory area to which ptrnew points will move n times of sizeof (type pointed by ptrold) bytes to the lower address direction than the memory area to which ptrold points.

Chapter 3. Operators & and * P

Here & is the address operator, * is... the book is called "indirect operator ".
& The operation result of A is a pointer, And the pointer type is a plus *. The Pointer Points to the type, and the Pointer Points to the address, that is the address of.
* P's computation results are varied. In short, the result of * P is what P points to. It has these characteristics: its type is P-pointed, and its occupied address is the address pointed to by P.

Example 5:
Int A = 12;
Int B;
Int * P;
Int ** PTR;
P = & A; // The result of & A is a pointer. The type is int *, the type is int, and the address is.
* P = 24; // * P result. Here its type is int, and the address occupied by it is the address pointed to by P. Obviously, * P is variable.
PTR = & P; // The result of & P is a pointer. the pointer type is p type plus *. Here it is int **. The Pointer Points to the p type. Here it is int *. The Pointer Points to the address of P itself.
* PTR = & B; // * PTR is a pointer, and the result of & B is also a pointer, and the types of the two pointers are the same as those pointed, therefore, it is no problem to assign a value to * PTR using & B.
** PTR = 34; // * the result of PTR is what PTR points to. Here it is a pointer, and this pointer is operated again, the result is an int type variable.

Chapter 4 pointer expression

If the final result of an expression is a pointer, this expression is called a pointer expression.
Below are some examples of pointer expressions:

Example 6:
Int A, B;
Int array [10];
Int * pA;
Pa = & A; // & A is a pointer expression.
Int ** PTR = & PA; // & PA is also a pointer expression.
* PTR = & B; // * PTR and & B are pointer expressions.
Pa = array;
Pa ++; // This is also a pointer expression.

Example 7:
Char * arr [20];
Char ** Parr = arr; // If arr is regarded as a pointer, arr is also a pointer expression.
Char * STR;
STR = * Parr; // * Parr is a pointer expression.
STR = * (Parr + 1); // * (Parr + 1) is a pointer expression.
STR = * (Parr + 2); // * (Parr + 2) is a pointer expression.

Since the result of a pointer expression is a pointer, the pointer expression also has four elements of the pointer: the pointer type, the type pointed to by the pointer, and the memory area pointed to by the pointer, memory occupied by the pointer itself.
Well, when the result pointer of a pointer expression has clearly occupied the memory of the pointer itself, the pointer expression is a left value, otherwise it is not a left value. In Example 7, & A is not a left value because it does not occupy clear memory. * PTR is a left value, because * PTR pointer occupies the memory. In fact, * PTR is the pointer Pa. Since PA already has its own location in the memory, * PTR certainly has its own position.

Chapter 5. Relationship between arrays and pointers

If you do not understand the statements for declaring arrays, see the article I posted earlier The array name can be regarded as a pointer. See the following example:

Example 8:
Int array [10] = {,}, value;
...
...
Value = array [0]; // It can also be written as: value = * array;
Value = array [3]; // It can also be written as: value = * (array + 3 );
Value = array [4]; // It can also be written as: value = * (array + 4 );
In the above example, the array name array represents the array itself, and the type is int [10]. However, if we regard array as a pointer, it points to the 0th units of the array, and the type is int *, the Type pointed to is the type of the array unit, that is, Int. Therefore, it is not surprising that * array is equal to 0. Similarly, array + 3 is a pointer to the array's 3rd units, so * (array + 3) is equal to 3. Others.

Example 9:
char * STR [3] = {
"Hello, this is a sample! ",
" Hi, good morning. ",
" Hello World "
};
char s [80];
strcpy (S, STR [0]); // It can also be written as strcpy (S, * Str);
strcpy (S, STR [1]); // It can also be written as strcpy (S, * (STR + 1);
strcpy (S, STR [2]); // It can also be written as strcpy (S, * (STR + 2 ));
In the above example, STR is a three-unit array. Each unit of the array is a pointer, each pointing to a string. If the pointer array name STR is used as a pointer, it points to the cell 0th of the array. Its type is Char **, and it points to char *. * STR is also a pointer. Its type is char * and it points to Char. It points to the string "Hello, this is a sample! ", That is, the address of 'H. STR + 1 is also a pointer pointing to unit 1st of the array. Its type is Char **, and its type is char *. * (STR + 1) is also a pointer. Its type is char * and it points to Char, which points to "Hi, good morning. the first character 'h', and so on.

The following is a summary of the array name problem. If an array type array [N] is declared, the array name array has two meanings: First, it represents the entire array, and its type is type [N]; second, it is a pointer. the pointer type is type *. The Pointer Points to the type, that is, the type of the array unit. The memory area pointed to by the pointer is the unit 0th of the array, this pointer occupies a separate memory zone. Note that it is different from the memory zone occupied by the array unit 0th. The value of this pointer cannot be modified, that is, the expression similar to array ++ is incorrect.
In different expressions, array names can play different roles. In the expression sizeof (array), the array name array represents the array itself. Therefore, the sizeof function measures the size of the entire array. In the expression * array, array acts as a pointer. Therefore, the result of this expression is the value of unit 0th of the array. Sizeof (* array) measures the size of the array unit. Expression Array + N (where n = 0, 1, 2 ,.....) In, array is a pointer, so the result of array + N is a pointer, its type is type *, it points to type, it points to the array number n. Therefore, sizeof (array + n) measures the pointer size.

Example 10:
Int array [10];
INT (* PTR) [10];
PTR = & array;
In the above example, PTR is a pointer and its type is int (*) [10]. It points to int [10]. We use the first address of the entire array to initialize it. In the statement PTR = & array, array represents the array itself.

As mentioned in this section, the sizeof () function is used to determine whether the sizeof (pointer name) is the size of the pointer's own type or the size of the type pointed to by the pointer? The answer is the former. For example:

INT (* PTR) [10];
In a 32-bit program, there are:
Sizeof (INT (*) [10]) = 4
Sizeof (INT [10]) = 40
Sizeof (PTR) = 4
In fact, sizeof (object) measures the size of the object's own type, rather than the size of other types.

Chapter 6. Relationship between pointer and Structure Type

You can declare a pointer to a structure object.
Example 11:
Struct mystruct
{
Int;
Int B;
Int C;
}

Mystruct Ss = {20, 30, 40}; // declares the structure object SS, and initializes the three Members of SS to 20, 30, and 40.
Mystruct * PTR = & SS; // declares a pointer to the structure object ss. Its type is mystruct *, and it points to mystruct.
Int * pstr = (int *) & SS; // declares a pointer to the structure object ss. However, its type is different from the type it points to and PTR.

How can I access the three member variables of SS through the pointer PTR?
Answer:
PTR->;
PTR-> B;
PTR-> C;

How can I access the three member variables of SS through the pointer pstr?
Answer:
* Pstr; // access a, a member of the SS.
* (Pstr + 1); // access B, a member of SS.
* (Pstr + 2) // access the SS member C.

Haha, although I have adjusted the above Code on my msvc ++ 6.0, It is not formal to use pstr to access structure members. To explain why it is not formal, let's take a look at how to access the various elements of the array through pointers:

Example 12:
Int array [3] = {35, 56, 37 };
Int * pA = array;
The method to access the three elements of the array through pointer PA is as follows:
* PA; // access to unit 0th
* (PA + 1); // access to unit 1st
* (PA + 2); // access to unit 2nd
The format is the same as the format of the informal method used to access structure members through pointers. When all C/C ++ compilers arrange the elements of an array, they always store each array unit in a continuous storage area. There is no gap between the Unit and the unit. However, when each member of a structure object is stored
In the compilation environment, you may need to align words, double-character alignment, or other alignment. You need to add several "fill bytes" between two adjacent members ", as a result, each member may have several byte gaps. Therefore, in example 12, even if * pstr accesses the first member variable A of the structure object SS, * (pstr + 1) cannot be guaranteed to access structure member B. Because members A and B may have
Several Padding Bytes. Maybe * (pstr + 1) can access these padding bytes. This also proves the flexibility of pointers. If your goal is to see whether there are any bytes filled with each structure member, hey, this is a good method. The correct method for accessing structure members through pointers is to use the pointer PTR method in example 12.

Chapter 7. Relationship between pointers and functions

You can declare a pointer as a pointer to a function.
Int fun1 (char *, INT );
INT (* pfun1) (char *, INT );
Pfun1 = fun1;
....
....
Int A = (* pfun1) ("abcdefg", 7); // call a function through a function pointer.
You can use pointers as function parameters. In a function call statement, you can use a pointer expression as a real parameter.

Example 13:
Int fun (char *);
Int;
Char STR [] = "abcdefghijklmn ";
A = fun (STR );
...
...
Int fun (char * s)
{
Int num = 0;
For (INT I = 0; I
{
Num + = * s; s ++;
}
Return num;
}
In this example, function fun counts the sum of the ASCII values of each character in a string. As mentioned above, the array name is also a pointer. In function calls, after STR is passed to the form parameter S as a real parameter, the STR value is actually passed to S, s points to the same address as STR points to, But STR and S occupy their own storage space. In the function body, the auto-increment 1 operation on S does not mean that the STR auto-increment 1 operation is performed at the same time.

Chapter 8. Pointer type conversion

When we initialize a pointer or assign a value to a pointer, the left side of the value pair is a pointer, and the right side of the value pair is a pointer expression. In most cases, the pointer type is the same as that of the pointer expression, and the pointer type is the same as that of the pointer expression.

Example 14:
1. Float F = 12.3;
2. Float * fptr = & F;
3. Int * P;
In the above example, if we want to point the pointer P to the real number F, what should we do? Is the following statement used?
P = & F;
No. Because the pointer P is of the int type *, it points to the int type. The result of Expression & F is a pointer. the pointer type is float *, and the pointer type is float. The two are inconsistent. The direct assignment method is not feasible. At least in my msvc ++ 6.0, the assignment statement for the pointer requires that the types on both sides of the assignment number be consistent, and the types to be pointed to are also consistent. I have not tried it on other compilers, you can try it. To achieve our goal, we need to perform "forced type conversion": P = (int *) & F;
If there is a pointer P, we need to change its type and the type to tyep * and type, then the syntax format is:
(Type *) P;
In this way, the forced type conversion result is a new pointer. the type of the new pointer is type *, and it points to type. The address it points to is the address pointed to by the original pointer. All properties of the original pointer P are not modified.

If a function uses a pointer as a form parameter, a pointer type conversion will also occur when the real parameters and form parameters of the function call statement are combined.

example 15:
void fun (char *);
int A = 125, B;
fun (char *) & );
...
...
void fun (char * s)
{< br> char C;
C = * (S + 3); * (S + 3) = * (S + 0); * (S + 0) = C;
C = * (S + 2); * (S + 2) = * (S + 1); * (S + 1) = C;
}< br> note that this is a 32-bit program, so the int type occupies four bytes, the char type occupies one byte. Function fun is used to reverse the order of four bytes of an integer. Have you noticed? In a function call statement, the result of the real parameter & A is a pointer. Its type is int *, and its type is int. The pointer type of the parameter is char *, which points to Char. In this way, in the combination of real parameters and form parameters, we must perform a conversion from the int * type to the char * type. Using this example, we can imagine the conversion process of the compiler: the compiler first constructs a temporary pointer char * temp, and then runs temp = (char *) &, finally, pass the Temp value to S. So the final result is: the type of S is char *, which points to Char, and the address it points to is the first address of.

We already know that the pointer value is the address pointed to by the pointer. In a 32-bit program, the pointer value is actually a 32-bit integer. Can an integer be directly assigned to the pointer as the pointer value? Like the following statement:
Unsigned int;
Type * PTR; // The type is int, Char, or structure type.
...
...
A = 20345686;
PTR = 20345686; // Our purpose is to point the pointer PTR to the address 20345686 (decimal)
PTR = A; // Our purpose is to point the pointer PTR to the address 20345686 (decimal)
Compile it. The result shows that the last two statements are all incorrect. So our goal cannot be achieved? No, there are other methods:
Unsigned int;
Type * PTR; // The type is int, Char, or structure type.
...
...
A = a certain number, which must represent a valid address;
PTR = (type *) A; // Ha, this is OK.
Strictly speaking, the type * here is different from the type * in the pointer type conversion. Here (type *) means to treat the value of the unsigned integer a as an address. It is emphasized that the value of a must represent a valid address. Otherwise, an invalid operation error occurs when you use PTR.

Think about whether or not we can take the address pointed to by the pointer as an integer. Yes. The following example shows how to take the value of a pointer as an integer and then assign this Integer as an address to a pointer:
Example 16:
Int A = 123, B;
Int * PTR = &;
Char * STR;
B = (INT) PTR; // take the pointer PTR value as an integer.
STR = (char *) B; // assign the value of this integer to the pointer STR as an address.

Now we know that we can take the pointer value as an integer or assign an integer as an address to a pointer.

Chapter 9. Pointer security issues

See the following example:
Example 17:
Char S = 'a ';
Int * PTR;
PTR = (int *) & S;
* PTR = 1298;
Pointer PTR is an int * type pointer, which points to the int type. It points to the first address of S. In 32-bit programs, s occupies one byte, And the int type occupies four bytes. The last statement not only changes the byte occupied by S, but also changes the three bytes in the high address direction adjacent to S. What are these three bytes? Only the compiled program knows, but the program writer is unlikely to know. Maybe these three bytes store very important data, maybe these three bytes are exactly a piece of code of the program, and because of your sloppy application of pointers, the value of these three bytes has been changed! This will cause a collapse error.
Let's take another example:

Example 18:
1. Char;
2. Int * PTR = &;
...
...
3. PTR ++;
4. * PTR = 115;
This example can be fully compiled and executed. But do you see? After we perform the auto-increment 1 operation on the pointer PTR, the PTR points to a storage area adjacent to the high address of the shaping variable. What is in this bucket? We don't know. It may be a very important piece of data, or even a piece of code. The first sentence is to write a piece of data into this bucket! This is a serious error. So when using pointers, the programmer must be very clear about where my pointers actually point. When using pointers to access arrays, be sure not to go beyond the low-end and high-end limits of arrays. Otherwise, similar errors may occur.
In the forced type conversion of pointer: ptr1 = (type *) ptr2, if sizeof (ptr2 type) is greater than sizeof (ptr1 type ), therefore, it is safe to use the pointer ptr1 to access the storage zone pointed to by ptr2. If sizeof (ptr2 type) is smaller than sizeof (ptr1 type), it is insecure when ptr1 is used to access the bucket to which ptr2 points. As for why, readers should think about it in combination with example 17.

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.