In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
How we can set and clear bit in a byte using macro function?
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none
how to add two numbers without using arithmetic operators?
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Explain what happens if you free a pointer twice?
What is FIFO?
WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?
6 Answers Finite Infotech, Lovely Professional University, Wipro,
Why #include is used in c language?
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
What is meant by keywords in c?
Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
What is the process to create increment and decrement stamen in c?