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)