-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.c
More file actions
45 lines (40 loc) · 986 Bytes
/
array.c
File metadata and controls
45 lines (40 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* =====================================================================================
*
* Filename: array.c
*
* Description:
*
* Version: 1.0
* Created: 09-Oct-21 15:24:16
* Revision: none
* Compiler: gcc
*
* Author: Jwtiyar Nariman (),
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <stdio.h>
/* int main(){ */
/* int myArray[5]={1,2,3,4,5}; // detwany awa bykey myArray[5] enca dway ewe dane be daneelementekena bnaseny. */
/* // herweha detwany emesh bkeyt bo katty update int myArray[]={1,2,3,4,5} */
/* for(int i=0;i<5;i++){ */
/* printf("value at the elemetn %d is:%d\n",i,myArray[i]); */
/* } */
/* } */
// Array with Loops
int main()
{
int size= 3 ;
int derece[size];
derece[0] = 1;
derece[1] = 2;
derece[2] = 3;
for ( int i = 0; i < size; i++)
{
printf("%d ",derece[i]);
}
return 0;
}