Answer:
#include <iostream>
using namespace std;
int main() {
int a[4][5];//declaring a matrix of 4 rows and 5 columns.
for(int i=0;i<4;i++)
{
for(int j=0;j<5;j++)
{
if(i==3)//initializing last row as 0.
{
a[i][j]=0;
}
else//initializing last row as 1.
{
a[i][j]=1;
}
}
}
for(int i=0;i<4;i++)
{
for(int j=0;j<5;j++)
cout<<a[i][j]<<" ";//printing the matrix.
cout<<endl;
}
return 0;
}
Output:-
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
0 0 0 0 0
Explanation:
I have created a matrix of size 4 rows and 5 columns.I have used for loops to fill the array.To fill the last row with 0 i have used if statement.else we are filling it with 1.
Answer:
- personallity is an individual's unique combination of attitudes, behaviors, and characteristics.
-(maybe)Being aware of personality characteristics helps people identify their natural abilities and determine potential careers.
Explanation:
hope helped
Answer:
64 K bytes = 65536 bytes
32 M bytes = 33554432 bytes
Explanation:
The question expect the number of bytes in binary instead of decimal. So this is important to understand that:
- 1K bytes = 1024 bytes (in binary)
Therefore,
- 64 Kb = 64 x 1024 = 65536 bytes
Using the similar calculation logic, we know
- 1M bytes = 1024 x 1024 = 1048576 bytes (in binary)
Therefore,
- 32 M bytes = 32 x 1048576 = 33554432 bytes