SlideShare a Scribd company logo
1.                                     array

     .
                                 .

     .
     .

2.           ------    array           element


     .< >                               .[ ]

     .( )                               .{ }

3.                             array

1 //arraystr.c

2        #include <stdio.h>

3        #include <conio.h>

4        void main()

5        {

6        int a;

7        char c[3];
8        c[0] = 'A', c[1] = 'B', c[2]='C';

9        clrscr();

10 for (a=0;a<=2;a++)

11 {

12                    printf("data in array %d = %c n",a,c[a]);

13           }

14 getch();

15 }

array

     .       1                               .   2

     .       3                               .   4

4.                                  array type array-name[n];
type

         .             array                              .

         .                             .

5.                                array 1

     . int num[10][12];                          . char name[20];
. char [name];   . float boy[big];




                                     6/3   12

More Related Content

What's hot

Python codigo graficas
Python codigo graficasPython codigo graficas
Python codigo graficas
Brayan Kalaka
 
Como crear una matriz de 3x3 con c++ con menu
Como crear una matriz de 3x3 con c++ con menu Como crear una matriz de 3x3 con c++ con menu
Como crear una matriz de 3x3 con c++ con menu
JoseGCordero
 
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานknangsmiley
 
Programación funcional en Haskell
Programación funcional en HaskellProgramación funcional en Haskell
Programación funcional en HaskellRoberto Bonvallet
 
6. separation, namespace, error
6. separation, namespace, error6. separation, namespace, error
6. separation, namespace, error
Vahid Heidari
 
Kelompok 2.5
Kelompok 2.5Kelompok 2.5
Kelompok 2.5
1300018075
 
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
Chris Ohk
 
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafe
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafeSwift イニシャライザー復習会 #love_swift #akibaswift #21cafe
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafe
Tomohiro Kumagai
 
Sources
SourcesSources
Sourcesyonsei
 
Zadatak
ZadatakZadatak
Zadatak
Zeljko Lukic
 
Алексей Кутумов, C++ без исключений, часть 3
Алексей Кутумов,  C++ без исключений, часть 3Алексей Кутумов,  C++ без исключений, часть 3
Алексей Кутумов, C++ без исключений, часть 3
Platonov Sergey
 
Practica 4 errores
Practica 4 erroresPractica 4 errores
Practica 4 erroresUVM
 
[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template
Seok-joon Yun
 
珠三角技术沙龙新语言场 C++11
珠三角技术沙龙新语言场 C++11珠三角技术沙龙新语言场 C++11
珠三角技术沙龙新语言场 C++11翀 周
 

What's hot (20)

Vcs12
Vcs12Vcs12
Vcs12
 
Python codigo graficas
Python codigo graficasPython codigo graficas
Python codigo graficas
 
Vcs21
Vcs21Vcs21
Vcs21
 
Macro
MacroMacro
Macro
 
Programacion
ProgramacionProgramacion
Programacion
 
Como crear una matriz de 3x3 con c++ con menu
Como crear una matriz de 3x3 con c++ con menu Como crear una matriz de 3x3 con c++ con menu
Como crear una matriz de 3x3 con c++ con menu
 
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
 
Programación funcional en Haskell
Programación funcional en HaskellProgramación funcional en Haskell
Programación funcional en Haskell
 
Md5
Md5Md5
Md5
 
6. separation, namespace, error
6. separation, namespace, error6. separation, namespace, error
6. separation, namespace, error
 
Kelompok 2.5
Kelompok 2.5Kelompok 2.5
Kelompok 2.5
 
Info clasa
Info clasaInfo clasa
Info clasa
 
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
 
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafe
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafeSwift イニシャライザー復習会 #love_swift #akibaswift #21cafe
Swift イニシャライザー復習会 #love_swift #akibaswift #21cafe
 
Sources
SourcesSources
Sources
 
Zadatak
ZadatakZadatak
Zadatak
 
Алексей Кутумов, C++ без исключений, часть 3
Алексей Кутумов,  C++ без исключений, часть 3Алексей Кутумов,  C++ без исключений, часть 3
Алексей Кутумов, C++ без исключений, часть 3
 
Practica 4 errores
Practica 4 erroresPractica 4 errores
Practica 4 errores
 
[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template
 
珠三角技术沙龙新语言场 C++11
珠三角技术沙龙新语言场 C++11珠三角技术沙龙新语言场 C++11
珠三角技术沙龙新语言场 C++11
 

More from Aeew Autaporn

งานนำเสนอ1อ ทรงศักดิ์
งานนำเสนอ1อ ทรงศักดิ์งานนำเสนอ1อ ทรงศักดิ์
งานนำเสนอ1อ ทรงศักดิ์Aeew Autaporn
 
พื้นฐานภาษาจาวา
พื้นฐานภาษาจาวาพื้นฐานภาษาจาวา
พื้นฐานภาษาจาวาAeew Autaporn
 
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้ว
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้วลือ!!! Apple เริ่มผลิต iPhone 5S แล้ว
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้วAeew Autaporn
 
เกมส์จับคู่
เกมส์จับคู่เกมส์จับคู่
เกมส์จับคู่Aeew Autaporn
 
สรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบสรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบAeew Autaporn
 
สรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบสรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบAeew Autaporn
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝันAeew Autaporn
 
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while Aeew Autaporn
 
ข่าวไอที
ข่าวไอทีข่าวไอที
ข่าวไอทีAeew Autaporn
 

More from Aeew Autaporn (12)

ย่อย6
ย่อย6ย่อย6
ย่อย6
 
ย่อย1
ย่อย1ย่อย1
ย่อย1
 
งานนำเสนอ1อ ทรงศักดิ์
งานนำเสนอ1อ ทรงศักดิ์งานนำเสนอ1อ ทรงศักดิ์
งานนำเสนอ1อ ทรงศักดิ์
 
พื้นฐานภาษาจาวา
พื้นฐานภาษาจาวาพื้นฐานภาษาจาวา
พื้นฐานภาษาจาวา
 
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้ว
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้วลือ!!! Apple เริ่มผลิต iPhone 5S แล้ว
ลือ!!! Apple เริ่มผลิต iPhone 5S แล้ว
 
ลือ
ลือลือ
ลือ
 
เกมส์จับคู่
เกมส์จับคู่เกมส์จับคู่
เกมส์จับคู่
 
สรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบสรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบ
 
สรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบสรุปงานผู้ทดสอบ
สรุปงานผู้ทดสอบ
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝัน
 
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while
กลุ่มที่4 ม.6/3 คำสั่ง For,While,Do while
 
ข่าวไอที
ข่าวไอทีข่าวไอที
ข่าวไอที
 

1

  • 1. 1. array . . . . 2. ------ array element .< > .[ ] .( ) .{ } 3. array 1 //arraystr.c 2 #include <stdio.h> 3 #include <conio.h> 4 void main() 5 { 6 int a; 7 char c[3];
  • 2. 8 c[0] = 'A', c[1] = 'B', c[2]='C'; 9 clrscr(); 10 for (a=0;a<=2;a++) 11 { 12 printf("data in array %d = %c n",a,c[a]); 13 } 14 getch(); 15 } array . 1 . 2 . 3 . 4 4. array type array-name[n]; type . array . . . 5. array 1 . int num[10][12]; . char name[20];
  • 3. . char [name]; . float boy[big]; 6/3 12