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 |
What is boolean in c?
In a switch statement, explain what will happen if a break statement is omitted?
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
explain about storage of union elements.
What is the mean of function?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
Explain can static variables be declared in a header file?
how to implement stack operation using singly linked list
how to find binary of number?
What is a function in c?
What is a nested loop?
What is union in c?