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
Describe the order of precedence with regards to operators in C.
Explain what is gets() function?
What is data structure in c and its types?
What is dynamic memory allocation?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
What is void main () in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What are the different types of linkage exist in c?
#include<conio.h> #include<stdio.h> void main() { int i; if(1,0,2,3) { printf("if"); } else { printf("else"); } getch(); } Can any body tell the answer of this question with explanation?
what is the difference between #include<> and #include”…”?