Home > Back-end >  Does anyone know how to do this? Don't know much about the freshman to learn c language
Does anyone know how to do this? Don't know much about the freshman to learn c language

Time:12-13

CodePudding user response:

A ^ (1 & lt; <(k - 1))

CodePudding user response:

 # include & lt; Iostream> 

using namespace std;


Int main (void)
{
Unsigned int a, k;

Cin> Hex> a> Dec> k;

//cout//coutK=1;
coutIf (k & gt; * 8)=sizeof (a)
cout
//coutA ^=(1 u & lt;
cout
return 0;
}


For your reference ~

CodePudding user response:

reference 1st floor forever74 response:
a ^ (1 & lt; <(k - 1))

Why is this?

CodePudding user response:

reference weixin_53514129 reply: 3/f
Quote: refer to 1st floor forever74 response:
a ^ (1 & lt; <(k - 1))

Why is this?

Simple operation, don't understand? Let me show a complete generation,
 # include & lt; stdio.h> 

Int main (void)
{
Unsigned int a, k;
The scanf (" % x % d ", & amp; A, & amp; K);
A ^=(1 & lt; Printf (" % x \ n ", a);
return 0;
}

CodePudding user response:

Ctrigger
reference 4 floor response:
Quote: refer to the third floor weixin_53514129 response:
Quote: refer to 1st floor forever74 response:
a ^ (1 & lt; <(k - 1))

Why is this?

Simple operation, don't understand? Let me show a complete generation,
 # include & lt; stdio.h> 

Int main (void)
{
Unsigned int a, k;
The scanf (" % x % d ", & amp; A, & amp; K);
A ^=(1 & lt; Printf (" % x \ n ", a);
return 0;
}

I am not understand 1 & lt;

CodePudding user response:

reference 5 floor weixin_53514129 reply:
Quote: refer to 4th floor ctrigger response:
Quote: refer to the third floor weixin_53514129 response:
Quote: refer to 1st floor forever74 response:
a ^ (1 & lt; <(k - 1))

Why is this?

Simple operation, don't understand? Let me show a complete generation,
 # include & lt; stdio.h> 

Int main (void)
{
Unsigned int a, k;
The scanf (" % x % d ", & amp; A, & amp; K);
A ^=(1 & lt; Printf (" % x \ n ", a);
return 0;
}

I am not understand 1 & lt;


C language arithmetic, like left instructions, assembly language,
  • Related