when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none

Answer Posted / singh

if block will be evaluated as true only if x=1.
because for first comparision x==x it returns 1.
then it again compares with x==x ie,x==1.
-it will return true only if x=1;

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways to a null pointer can use in c programming language?

581


What are the types of type qualifiers in c?

640


What Is The Difference Between Null And Void Pointer?

630


What does %c mean in c?

639


Is c is a high level language?

609






main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

714


Do pointers need to be initialized?

554


How can you avoid including a header more than once?

553


What is infinite loop?

619


What does the && operator do in a program code?

686


Explain what are the __date__ and __time__ preprocessor commands?

584


Where in memory are my variables stored?

622


When should volatile modifier be used?

544


Compare array data type to pointer data type

592


What is enumerated data type in c?

615