The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
105 views

My doubt :
 

What should we consider ^ operator as Bitwise XOR  ? or Exponentiation

 

asked in DS by Loyal (6.7k points)
recategorized by | 105 views
0
power
0
Yes in C programming Language "^" is considered as an EX-OR operator.
0
Bitwise xor is also represented by same symbol right ??
0
but its just simple expression no need of c lang. here
0

Why here it is different ??

0
nothing different it is $ $ 2^4$^2 $ which is this

 precendence in quetion in note see that i think u r confusing there
0
I am confused about different symbols used for exponen.. not precedence

1 Answer

0 votes
in C and most of the programming languages ^ is bitwise xor.
For exponentiation you can use ** in python3, math.pow in C.

But in this question ^ is to be interpreted as a maathematical operator rather than programming construct
answered by Active (2k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,532 questions
54,123 answers
187,319 comments
71,044 users