Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / naveen

o/p is x=0;
as x==x it will give 1 as result;
then again x==1;
so it will be false if x!=1i.e it will be true for only if
x value is 1.
i.e x=1 only if xis 1 other wise it is 0

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sizeof int in c?

1045


Why C language is a procedural language?

1008


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

2006


all c language question

2422


What are header files and what are its uses in C programming?

1210


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1073


Explain what is output redirection?

1177


What is local and global variable in c?

1179


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2229


Explain about the constants which help in debugging?

1356


Write a program to generate the Fibinocci Series

1219


What is an auto keyword in c?

1080


Can variables be declared anywhere in c?

1072


Differentiate between static and dynamic modeling.

1082


Explain how can you restore a redirected standard stream?

1085