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
main() { int i=5; printf("%d%d%d%d",i++,i--,i); }
Differentiate between declaring a variable and defining a variable?
Describe static function with its usage?
What is file in c preprocessor?
what are threads ? why they are called light weight processes ? what is the relation between process and threads ?
Can we change the value of #define in c?
main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }
plz answer.. a program that takes a string e.g. "345" and returns integer 345
What is dangling pointer in c?
difference between loading and linking
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the use of a ‘