Get Function
| 240 | |
| 241 | //Get Function |
| 242 | void Get(struct array arr,int index) |
| 243 | { |
| 244 | if(index>=0 && index<arr.length) |
| 245 | { |
| 246 | printf("The number at given index is %d\n",arr.A[index]); |
| 247 | } |
| 248 | else |
| 249 | { |
| 250 | printf("The given index is not valid"); |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | //Set Function |
| 255 | void Set(struct array *arr,int index,int x) |