/*
* 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
");
scanf("%d", &elementCount);
printf("Enter %d numbers
", 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
");
for(counter = 0; counter < elementCount; counter++){
printf("%d ", inputArray[counter]);
}
getch();
return 0;
}
Code Example |
---|
C :: pointer arithmetic on Arrray in c |
C :: how to free memory in c |
C :: c program to find minimum of 5 numbers using conditional operator in c |
C :: arduino empty serial buffer |
C :: division en java |
C :: c list |
C :: Create the static library libmy.a containing all the functions listed below: |
C :: 1000000000 |
C :: while loop in c |
C :: Find the how many bits is turned on in a numebr |
C :: find sum of all odd numbers from 1 to n using for loop |
C :: size of int in c |
C :: c functions |
C :: bp result system |
C :: fungetc |
C :: promt user input C |
C :: spacemacs start server |
C :: C Keyword typedef |
C :: c %d |
C :: C (GEM) |
C :: translator program in c |
C :: ESP32 timerBegin(0, cpuClock, true); |
C :: c limit value range |
C :: redis endpoint |
C :: shortest job first |
C :: ::template |
C :: Futter Square Button full |
C :: string once declared |
C :: Sampoo C programming |
C :: how to compare string in c |