Horje
how to insert elements in and array and print it in c Code Example
how to insert elements in and array and print it in c
/*
* C Program to read array elemnts and print 
* array elements on screen  
*/
#include <stdio.h>
#include <conio.h>
  
int main(){
    int inputArray[500], elementCount, counter;
      
    printf("Enter Number of Elements in Array\n");
    scanf("%d", &elementCount);
    printf("Enter %d numbers \n", elementCount);
     
    /* Read array elements one by one using for loop and 
 stores then in adjacent locations starting form index 0*/
    for(counter = 0; counter < elementCount; counter++){
        scanf("%d", &inputArray[counter]);
    }
        
    /* Print array */
    printf("Array Elements\n");
    for(counter = 0; counter < elementCount; counter++){
        printf("%d ", inputArray[counter]);
    }
          
    getch();
    return 0;
}




C

Related
clarity ppm jasper domain commands Code Example clarity ppm jasper domain commands Code Example
entity framework core discard changes Code Example entity framework core discard changes Code Example
slack wordpress Code Example slack wordpress Code Example
program to merge two strings in c Code Example program to merge two strings in c Code Example
passage on dowry Code Example passage on dowry Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8