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 ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you draw circles in C?

1142


Explain what is the benefit of using #define to declare a constant?

1160


What does the error message "DGROUP exceeds 64K" mean?

1208


Why c is called object oriented language?

1041


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1073


Why does notstrcat(string, "!");Work?

1120


Explain Basic concepts of C language?

1138


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

3096


What does *p++ do? What does it point to?

1038


Explain how can I pad a string to a known length?

1180


What is the process to create increment and decrement stamen in c?

1045


Why c is called a middle level language?

1085


What is the best way of making my program efficient?

1013


Write a program to print "hello world" without using a semicolon?

1048


What is the difference between text files and binary files?

1338