Working With 2D Arrays - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- C and Cpp Tutorials - English
-
Assingment -14
//Two-dimensional arrays in C#include <stdio.h>int main(){ int i,j; int num1[3][4],num2[3][4]; printf("Enter the elements of 3X4 array num1\n"); for(i=0; i<3; i++) for(j=0; j<4; j++) scanf("%d", &num1[i][j]); printf("Enter the elements of 3X4 array num2\n"); for(i=0; i<3; i++) for(j=0; j<4; j++) scanf("%d", &num2[i][j]); printf("The subtraction of num1 and num2 is\n"); for(i=0; i<3; i++) { for(j=0; j<4; j++) printf("%3d ", (num1[i][j] - num2[i][j])); printf("\n"); } return 0;}Naveen VP
04-05M 10-20S naveenpalanisamy142002@gmail.com
Answer last updated on: Aug. 19, 2024, 3:59 p.m.
-
Arrays
Is is possible for Multidimensional arrays declaration in C++?
05-06M 20-30S sherylviniba@gmail.com
Answer last updated on: April 15, 2020, 8:31 a.m.
-
1First C Program
-
2First Cpp Program
-
3Tokens
-
4Functions
-
5Scope Of Variables
-
6If And Else If statement
-
7Nested If And Switch Statement
-
8Increment And Decrement Operators
-
9Arithmetic Operators
-
10Relational Operators
-
11Logical Operators
-
12Loops
-
13Arrays
-
Working With 2D Arrays
-
15Strings
-
16String Library Functions
-
17Working With Structures
-
18Understanding Pointers
-
19Function Call
-
20File Handling In C
Questions posted on ST Forums:
26635 visits
Outline:
Working with 2-D Arrays -What are 2-D Arrays. -Range of arrays -Syntax for Declaration of 2-D arrays --example: data type array_name[row][column]; -Syntax for initialization of 2-D arrays --example: data type array_name[row][column]= row-val,col-val ;
Width: | 864 | Height: | 704 |
---|---|---|---|
Duration: | 00:07:58 | Size: | 4.9 MB |
Show video info