rohit


{ City } mumbai
< Country > india
* Profession * student
User No # 21471
Total Questions Posted # 2
Total Answers Posted # 3

Total Answers Posted for My Questions # 10
Total Views for My Questions # 40029

Users Marked my Answers as Correct # 68
Users Marked my Answers as Wrong # 33
Questions / { rohit }
Questions Answers Category Views Company eMail

Please list all the unary and binary operators in C.

3 C 7888

What does '\r' and '\b' mean? Please explain with example.

7 C++ General 32141




Answers / { rohit }

Question { Accenture, 10570 }

7. Identify the correct argument for the function call
fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above


Answer

b

Is This Answer Correct ?    1 Yes 0 No

Question { 6248 }

what is the use of a array in c


Answer

An array is a collection of similar elements(data types).
These similar elements could be all ints, or all floats, or
all chars, etc.
In an array all elements must e of same types.

In simple language, Arrays are used to give 'one' variable
the power to hold 'more than 1' values.

Is This Answer Correct ?    5 Yes 0 No


Question { Bhel, 19314 }

to find the program of matrix multiplication using arrays


Answer

/* Program for matrix multiplication using 2D array
9/20/08
By:-
rohit.born2code@gamil.com or
rohit_kamlakar@rediff.com

*/

#include
#include
const size=10;
void main()
{
int a[size][size],b[size][size],c[size][size],n,m,i,j,k;
char v;
clrscr();
do
{
m=n=3;
cout<<"Enter a 3X3 matrix(1)\n";

for(i=0;i {
for(j=0;j {
cin>>a[i][j];
}
}
cout<<"Enter a 3X3 matrix(2)\n";

for(i=0;i {
for(j=0;j {
cin>>b[i][j];
}
}

for(i=0;i {
for(j=0;j {
c[i][j]=0 ;
for(k=0;k {
c[i][j]=c[i][j]+(a[i][k]*b[k][j]);
}
}
}

cout<<"The product matrix is :"<
for(i=0;i {
cout< for(j=0;j {
cout< }
}
cout<<"\nWanna do it again ? (y/n)";
cin>>v;
}
while(v=='y'||v=='Y');
getch();
}

Is This Answer Correct ?    62 Yes 33 No