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 |
Differentiate between calloc and malloc.
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
SRUCTURE PROGRAMMING
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Function to find the given number is a power of 2 or not?
what are the facialities provided by you after the selection of the student.
Why c is faster than c++?
What is #include conio h?
What are the advantages of external class?
Differentiate between a for loop and a while loop? What are it uses?
What are different types of operators?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program