write a program to print the one dimensional array.
#include<stdio.h>
#include<conio.h>
void main()
{
int
printf("enter how many no");
scanf("%d",&n);
//arrary input;
for(i=0;i<n;i++)
{
printf("Enter elements %d ",i+1);
scanf("%d",&a[i]);
}
//array output;
for(i=0;i<n;i++)
printf("output at position [%d]is=%d\n",i+1,a[i]);
getch();
}
| Is This Answer Correct ? | 3 Yes | 3 No |
When we use void main and int main?
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Multiply an Integer Number by 2 Without Using Multiplication Operator
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Is this program statement valid? INT = 10.50;
Why is C language being considered a middle level language?
why 'c' is called middle level language.
Write a program to print distinct words in an input along with their count in input in decreasing order of their count
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?