Search
 
SCRIPT & CODE EXAMPLE
 

C

C - program to create 1D array

//C - program to create 1D array using data taken from user

#include <stdio.h>
void main(){
int i,a[100],n;
printf("Enter the no of elements of 1D array:	");
scanf("%d",&n);
printf("Enter the %d elements of the array",n);
for(i = 0; i<n;i++)
{
	scanf("%d",&a[i]);
}
}
Comment

PREVIOUS NEXT
Code Example
C :: replace a substring with another substring in c 
C :: c median of an array 
C :: malloc c 
C :: c double 
C :: hourglass sum 
C :: Complete the function in the editor. It has one parameter: an array, . It must iterate through the array performing one of the following actions on each element: 
C :: ecrire programme en C une fonction remplir tableau et un fonction inverser 
C :: unpack and repack deb package 
C :: do while loop in c 
C :: c memcpy array 
C :: fread 
C :: how to join an array of strings c 
C :: read from command line c 
C :: struct in struct 
C :: compile in c 
C :: pointer in c 
C :: c malloc 
C :: two way communication between child and parent processes in C using pipes 
C :: fifo page algorithm in C 
C :: modelform prefill with data 
C :: how can i learn c game development 
C :: gdebi install with yes option 
C :: execute asm in c 
C :: input multipal data types 
C :: link a lib iusing pragma 
C :: how to delete data and add from file in c language 
C :: How to set bit in float number in C 
C :: libraries that are not supported by null sound safety in flutter 
C :: opération bit à bit c 
C :: c input is skipped 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =