Choose one, among the given choices according to the output of the following code.
Code:
/* code to check collinear points(?) */
#include<stdio.h>
int main()
{
int a,b,c,d,e,f;
a=1;b=1;c=1;d=2;e=1;f=3;
if(((d-b)/(c-a))==((f-d)/(e-c)))
printf("collinear points");
else printf("Not");
return 0;
}
Choices:
1) Compile error.
2) Compiles but stops execution.
3) Not
4) collinear points
5) None of the above.
Answer, explanation and trick(if any) for the above will be given on our Facebook page
visit Facebook page
Code:
/* code to check collinear points(?) */
#include<stdio.h>
int main()
{
int a,b,c,d,e,f;
a=1;b=1;c=1;d=2;e=1;f=3;
if(((d-b)/(c-a))==((f-d)/(e-c)))
printf("collinear points");
else printf("Not");
return 0;
}
Choices:
1) Compile error.
2) Compiles but stops execution.
3) Not
4) collinear points
5) None of the above.
Answer, explanation and trick(if any) for the above will be given on our Facebook page
visit Facebook page
No comments:
Post a Comment