Answer:Consider the following code segment:
#include<iostream>
template<class temp>
int powerofTwo(temp &x)
{
return(!(x-1)&x);
}
void main()
{
int b=powerofTwo(100);
cout<<b;
}
What is the output of the above code?
Options
a) 0
b) 1
c) 100
d) None of the above
Answer : a) 0