Someone please tell me why the use of ^ sign is not allowed in c?????????

ramgates's Avatar, Join Date: Jan 2007
Newbie Member
Hai guys I dont know why the use of ^ sign (that is to denote 2*2*2 as 2^3) is not allowed in c, eventough we say c language as a powerfull language??????????????????????????
Please tell me the reason!!!!!!!!!!!!!!!!!!
friendsforniraj's Avatar, Join Date: Nov 2006
Go4Expert Member
c do allows use of ^ but not for power function
but this is an operator in c used for xor operations
you will learn dat in bitwise operations
and if you want to do the power of a no
then c has a predefined function in math.h
named pow(no,power);
means if u want to do 2*2*2;
jus do pow(2,3)