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
What are the ways to a null pointer can use in c programming language?
What are the types of type qualifiers in c?
What Is The Difference Between Null And Void Pointer?
What does %c mean in c?
Is c is a high level language?
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
Do pointers need to be initialized?
How can you avoid including a header more than once?
What is infinite loop?
What does the && operator do in a program code?
Explain what are the __date__ and __time__ preprocessor commands?
Where in memory are my variables stored?
When should volatile modifier be used?
Compare array data type to pointer data type
What is enumerated data type in c?