Home > Back-end >  Have bosses can give me answers about the topic of this C language
Have bosses can give me answers about the topic of this C language

Time:10-26

#include
using namespace std;
Void main ()
{
int a,b,c;
Int * p_a=& amp; A, * p_b=& amp; B, * p_c=& amp; C, * p;
Cout<& lt;" Please enter three integers: "& lt; Cin> A> B> c;
If (* p_a & lt; * p_b)
{
P=p_b;
P_b=p_a;
P_b=p;
}
If (* p_a & lt; * p_c)
{
P=p_c;
P_c=p_a;
P_a=p;
}
If (* p_b & lt; * p_c)
{
P=p_c;
* p_c=* p_b;
P_b=p;
}
Cout<* p_a & lt; & lt;" "& lt; <* p_b & lt; & lt;" "& lt; <* p_c & lt;
}
If the structure of the exchange in the form of two Numbers is what mean?? There is no point to any place, * p is initialized

CodePudding user response:

First, comparing two size, the second, * p_a=& amp; A, * p_b=& amp; B, * p_c=& amp; C, * p;
This is the initialization

CodePudding user response:

First, comparing two size, the second, * p_a=& amp; A, * p_b=& amp; B, * p_c=& amp; C, * p;
This is the initialization

CodePudding user response:

The greatest put the put the last side in front of the smallest; Int * p;

CodePudding user response:

P is just a temporary intermediate variable, not initialized

CodePudding user response:

How like a complex variable name
  • Related