read the folllowing code
# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x<MIN)
x=-1;
x=50;
if the initial value of x=200,what is the vlaue after
executing this code?
a.200
b.1
c.-1
d.50
Answer Posted / divakar
50. irrespective of the if and else if at last ur assigning
x=50
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What is ctrl c called?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What are identifiers in c?
Is there a way to switch on strings?
explain what is a newline escape sequence?
What is function definition in c?
List the variables are used for writing doubly linked list program.
How can you tell whether a program was compiled using c versus c++?
What is difference between structure and union?
What is masking?
How many types of operators are there in c?
Tell me is null always defined as 0(zero)?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.