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...

a 'c' program to tell that the set of three coordinates lie
on a same line

Answer Posted / chetan kole

m1=(y2-y1)/(x2-x1);
m2=(y3-y2)/(x3-x2);
if(m1==m2)
{
printf("3 points are on same line")
}
else
{
printf("not on same line");
}

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null valid for pointers to functions?

1108


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1651


What are 3 types of structures?

1027


Explain what is wrong in this statement?

1068


How do you declare a variable that will hold string values?

1105


what does static variable mean?

1050


How does sizeof know array size?

1071


Why header files are used?

1064


I came across some code that puts a (void) cast before each call to printf. Why?

1154


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1673


Who developed c language and when?

1009


what do you mean by enumeration constant?

957


What is the easiest sorting method to use?

1098


What is the main difference between calloc () and malloc ()?

1098


How do you list files in a directory?

1076