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
What are header files in c?
swap 2 numbers without using third variable?
Write a program to generate the first n terms in the series --- 9,11,20,31,...,82
print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5
How do you declare a variable that will hold string values?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Can we declare variable anywhere in c?
How to access or modify the const variable in c ?
16 Answers HCL, HP,
What are the rules for identifiers in c?
What do you mean by Recursion Function?
Are bit fields portable?
#include<stdio.h> int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }