Ashutosh Tripathi

Ashutosh Tripathi

  • NA
  • 62
  • 2.6k

sql server -for ^ please provide explanation about ^

Jul 24 2015 1:52 PM

what will be output of this query?

declare @a int declare @b int set @a=5 set @b=11

select @a=@a^@b,@b=@b^@a,@a=@a^@b

print '@a='+convert(var char, @a)

print '@b='+convert(var char,@b)


Answers (4)