Data Structure Program
Data Structure Program
int main()
{
int values[5];
#include <stdio.h>
int main()
{
int array[50], position, c, n, value;
array[position-1] = value;
return 0;
}
#include <stdio.h>
int main() {
int nbr, i, r, arr[30];
if (i < nbr)
{
printf("The element is found in the position = %d", i + 1);
}
else
{
printf("Element not found!");
}
return 0;
}
#include <stdio.h>
int main()
{
int array[100], position, c, n;
return 0;
}
#include <stdio.h>
void main ()
{
int arr[3][3],i,j;
for (i=0;i<3;i++)
{
for (j=0;j<3;j++)
{
printf("Enter a[%d][%d]: ",i,j);
scanf("%d",&arr[i][j]);
}
}
printf("\n printing the elements ....\n");
for(i=0;i<3;i++)
{
printf("\n");
for (j=0;j<3;j++)
{
printf("%d\t",arr[i][j]);
}
}
}
#include<stdio.h>
int main()
{
// declaring string
char str[50];
// reading string
scanf("%s",str);
// print string
printf("%s",str);
return 0;
}
int main()
{
// declare and initialize string
char str[] = "BCA";
return 0;
}