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
How can you draw circles in C?
Explain what is the benefit of using #define to declare a constant?
What does the error message "DGROUP exceeds 64K" mean?
Why c is called object oriented language?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Why does notstrcat(string, "!");Work?
Explain Basic concepts of C language?
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.
What does *p++ do? What does it point to?
Explain how can I pad a string to a known length?
What is the process to create increment and decrement stamen in c?
Why c is called a middle level language?
What is the best way of making my program efficient?
Write a program to print "hello world" without using a semicolon?
What is the difference between text files and binary files?