Find The Output Of The Following Codep Pre Langc #1237
Find the output of the following code.</p> <pre><code class="language-c"> #include <bits/stdc++.h> using namespace std; void crossP(int A[], int B[], int cross[]) { cross[0] = A[1] * B[2] - A[2] * B[1]; cross[1] = A[0] * B[2] - A[2] * B[0]; cross[2] = A[0] * B[1] - A[1] * B[0]; } int main() { int A[] = { 1, 2, 4 }; int B[] = { 2, 3, 2 }; int cross[3]; crossP(A, B, cross); for (int i = 0; i < 3; i++) cout << cross[i] << " "; return 0; } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Computational Geometry - Cross Product - Quiz No.2.
Similar question(s) are as followings:
Online Quizzes of gs122 Data Communication and Computer Network
Sorting - Insertion Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.3
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - LSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes