Working With 2D Arrays - Vietnamese
- subtitles off
- captions off
- English
- Vietnamese
- Questions posted on Forums
- C and Cpp Tutorials - Vietnamese
-
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:
206 visits
Outline:
Mảng hai chiều. -Mảng 2 chiều là gì? -Phạm vi của mảng. -Cú pháp khai báo của mảng 2 chiều. -- Ví dụ: kiểu dữ liệu array_name[row][column]; - Cú pháp khởi tạo mảng hai chiều. --Ví dụ: kiểu dữ liệu array_name[row][column]= row-val,col-val ;
Width: | 864 | Height: | 704 |
---|---|---|---|
Duration: | 00:07:59 | Size: | 5.1 MB |
Show video info