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 / manishsoni
it will print 50 because:
if(200>100)//condition true;
then x=1
and show in memory like this
___ ____
| | | |
x | 1 | then replace x| 50 |
|___| with |____|
100 100
so print the 50 value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can you please compare array with pointer?
Why we use conio h in c?
How is null defined in c?
When the macros gets expanded?
What are the valid places to have keyword “break”?
Write a code to generate divisors of an integer?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Does c have circular shift operators?
Write a program to print factorial of given number without using recursion?
Is that possible to add pointers to each other?
What is the sizeof () operator?
What is register variable in c language?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is a protocol in c?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent