What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / vijay r15
In c non zero values
in if statement r
considered to be true
here if(i=6)
so it makes if(6)
hence its true
op is 7
if 1ly execute false
for if(0)
got it
r
mail to
raj.Vijay55@gmail.Com
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can I do graphics in c?
Write a program which returns the first non repetitive character in the string?
Can main () be called recursively?
What is a nested loop?
What is LINKED LIST? How can you access the last element in a linked list?
what type of questions arrive in interview over c programming?
What is call by value in c?
Explain Function Pointer?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is the purpose of main() function?
Explain what does it mean when a pointer is used in an if statement?
What is derived datatype in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;