Questions

Q:

Write a program for matrix multiplication in c

Answer

#include <stdio.h>


int main() {


  int a[5][5], b[5][5], c[5][5], i, j, k, sum = 0, m, n, o, p;


  printf( "\nEnter the row and column of first matrix" );


  scanf( "%d %d", &m, &n );


  printf( "\nEnter the row and column of second matrix" );


  scanf( "%d %d", &o, &p );


  if(n!=o) {


      printf( "Matrix mutiplication is not possible" );


      printf( "\nColumn of first matrix must be same as row of second matrix" );


  }


  else {


      printf( "\nEnter the First matrix" );


      for( i=0; i<m; i++ )


      for( j=0; j<n; j++ )


           scanf( "%d", &a[i][j] );


      printf( "\nEnter the Second matrix" );


      for( i=0; i<o; i++ )


      for( j=0; j<p; j++ )


           scanf( "%d", &b[i][j] );


      printf( "\nThe First matrix is\n" );


      for( i=0; i<m; i++ ) {


      printf("\n");


      for( j=0; j<n; j++ ) {


           printf( "%d\t", a[i][j] );


      }


      }


      printf( "\nThe Second matrix is\n" );


      for( i=0; i<o; i++ ) {


      printf("\n");


      for( j=0; j<p; j++ ) {


           printf( "%d\t", b[i][j] );


      }       


      }


      for( i=0; i<m; i++ )


      for( j=0; j<p;j++ )


           c[i][j] = 0;


      for( i=0; i<m; i++ ) { //row of first matrix


      for( j=0; j<p; j++ )  {  //column of second matrix


           sum = 0;


           for( k=0; k<n; k++ )


               sum = sum + a[i][k]*b[k][j];


           c[i][j] = sum;


      }


      }


  }


  printf( "\nThe multiplication of two matrix is\n" );


  for( i=0; i<m; i++ ) {


      printf("\n");


      for( j=0; j<p; j++ ) {


           printf( "%d\t", c[i][j] );


      }


  }


  return 0;


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2376
Q:

What has feet and legs and nothing else?

Answer

Stocking is long sock that women wore which has legs and feet and nothing else.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: GRE , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

1 2376
Q:

Project Integration Management - Processes

Describe the Inputs, Tools and Techniques, Outputs of Integrated Change Control Phase?

Answer

I. Inputs



  • Project management plan

  • Requested changes

  • Work performance information

  • Recommended preventive actions

  • Recommended corrective actions

  • Recommended defect repair

  • Deliverables


II. Tools and Techniques



  • Project management methodology

  • Project management information system

  • Expert Judgment


III. Outputs



  • Approved change requests

  • Rejected change requests

  • Project management plan(updates)

  • Project scope statement (updates)

  • Approved corrective actions

  • Approved preventive actions

  • Approved defect repair

  • Validated defect repair

  • Deliverables 

Report Error

View answer Workspace Report Error Discuss

0 2376
Q:

What allows a cell to respond to a hormone?

A) hormone response element B) presence of hormone receptor
C) Adrenocorticotropic D) None of the above
 
Answer & Explanation Answer: B) presence of hormone receptor

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 2376
Q:

Which railway station became the first of South Central Railway zone to hoist a tricolour flag (100ft)?

A) Secunderabad B) Chennai
C) Bengaluru D) Panaji
 
Answer & Explanation Answer: A) Secunderabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2376
Q:

The question below consists of a set of labelled sentences. Out of the four options given, select the most logical order of the sentences to form a coherent paragraph.

P- It had been umpteen years since we had seen each other.

Q- One dull dark day in autumn, I was travelling on horseback through a dreary stretch of countryside.

R- This was the house of Roderick Usher, who had been my childhood pal.

S- At night fall, I came in sight of the house of Usher.

A) PQSR B) PSQR
C) QSRP D) QRSP
 
Answer & Explanation Answer: C) QSRP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: TOEFL , GRE , CAT

0 2376
Q:

Which best describes the meaning of the word politics?

A) It is the power of the executive branch to carry out the laws. B) It is the process by which the President commands the military.
C) It is the power of the executive branch to conduct foreign policy. D) It determines who will benefit from, and who will pay for, public policies.
 
Answer & Explanation Answer: D) It determines who will benefit from, and who will pay for, public policies.

Explanation:

The word politics determines who will benefit from, and who will pay for, public policies.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2375
Q:

What is fingerprint powder made of?

A) Rosin B) Black ferric oxide
C) Lamp black D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

1 2374