0% found this document useful (0 votes)
6 views9 pages

Array Programming

The document contains a series of programming assignments from the Odisha University of Technology and Research, focusing on various tasks related to arrays in C programming. Each assignment includes code snippets for operations such as inputting elements, printing in reverse order, merging arrays, finding the highest element, and performing linear searches. The assignments are attributed to a student named Subham Das, with registration number 2311014.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views9 pages

Array Programming

The document contains a series of programming assignments from the Odisha University of Technology and Research, focusing on various tasks related to arrays in C programming. Each assignment includes code snippets for operations such as inputting elements, printing in reverse order, merging arrays, finding the highest element, and performing linear searches. The assignments are attributed to a student named Subham Das, with registration number 2311014.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ODISHA UNIVERSITY OF

TECNOLOGY AND RESEARCH,


Department of
BHUBANESWAR
Textile Eog Engineering

Semester 2nd Sheet No. Date

WAP to input elemens array 4 print


#nclde 4,o.h>
## inctude <c n io h

void main t)

int L3,i;
arr
print f ("Enter lenent of the e aray:"))
For l10; 1< 2,4++)
2.d" arrCi1 );
s can t C

Print ("emes ara ), :


forc (40; i< = 2 ít+)S
\t" arr C i1);
priod F (" 2. d

(eturn O,
3
Phoß47o6
kranrapetucBhuesw,
Name: gubham Das Regd. No.: 2311014
otu
10
Ao0
oN
ODISHA UNIVERSITY OF
TECHNOLOGY AND RESEARCH,
BHUBANESWAR Engineering
Department of Tex tile Enf
Semester Date
Sheet No.

WAP +o Prin. elemel f aray in reverse orer.

#incude <stdiohy
inclue <conio -h)
void man ()

int arr C3J,i;


priot f

Ci
( Enter

-o t<3;it+ )!
the e lemends ok the aray:");

for

Cc an Cy., 4 arr ci]))

("Eemene f Arras reverse orde:");


Prin F

Print f C" y.d\n'', arr [Cy -1)1;

Name : 9bar DaS Regd. No.: 23110944


h
10
ieev*
ODISHA UNIVERSITY OF
TECHNOLoGY AND RESEARCH,
BHUBANESWAR Engineering
Department ofTele En

Semester 2 nd A1 Date
SheetNo.

wAP to merçe two arays into a new array

A) #inctuce <stioh

# inchie <conio.
int arrtcJ,arr LC3J, ar [6

int

Pfif(«Enter elenen of Frst arra :"


for Ci= 0;i<3; 1t+)

Scanf ( 2d, arr 1 Ci1);


rm n++]- ar1 Cil
elemeols
f 2~ array :"))
Enter
D;i<;ttt){
for Ci

, 2 ); Ci1)
So C4y.d!
an A
ârrm [n++
= ) Ci1)
arr
afr2

f "Merget array:")
print

tor (í=o)i <b; i++)


(" y.", arrm [i1):
Prin+ f

returo O,

Name: Szbham Das Regd. No.: 231101 4


ODISHA UNIVERSITY OF
TECHNOLOGY AND RESEARCH,
Department of BHUBANESWAR
TeyHe Enf Engineering

Semester 20 42
_Sheet No. Date

WAP t0 1St 2d highest


eleme OF

ticlde <dio.h>
# incde coniohy
Void mainl)

int aCb], lar 1,lar2,


Print f (^Enter elemens of array: ;
for Ci= 0; i46; itt ){

fard dlo
For Ci=o)i<5 ;it+)
1) (
i(a[i>lar
lar 1 = acij

tar2 =aloT
foo Ci =1,; 1<5)i++ )
it CCact1) lar 2 )44 (acij< ha 2))
lar 2 = ali],
targeet no is .d47d lar1,lar2

retucn O

Name: Sybham Das [Link].: 2311014


ODISHA UNIVERSITY OF
TECHNOLOGY AND RESEARCH,
BHUBANESWAR Engineering
Departmentof

Semester
Sheet No. 43 Date

WAP 2areb for an arry in an aray n linear dearch,

inclce dip.h>

# include conioh}
void maine )
int arr C6], num, i,fornd=0,
Pint C"Eoter ele mers
k of tbe array:");
For Cis 15/ ít+){
Scanf C" y.d", arr ci)
elemerds gearch. ):
(h in enlerc tha te
Prid f

Scanf C" y.a', 4 num),

d found nm1),
117 bre )

prit F ("' found in the

retun O;

Name : Regd. No.:


ODISHA UNIVERSITY
OF
TECHNOLOGY AND RESEARCH, BHUBANESSWAR Engineering
Departmentof

Date
Sernester SheetNo.

vAP +o add wo ma.


# inctcle <stdio b>
arr3[2)cd/i,
,ar2 F3]C3J
Void main C)
arr 1l2]C2 matrix")
s of 1st
prirt F (" Enter elenam

Scanf

PrindF
(.a,
C"Erer
4

<2,i++)
arr CiJ CjI)

elenent of 2 malrik:") '


for Cizo,i

Scant C>d"; 4
arr Ci Ci) '
("gam of +w marp :"),
Prin f
for Ci= D
i 2 ) 7++
4 2 it++) f
Cj=o,i Cdd +ar 2d
for
ar
printf "
3 i]lj]- ar1 c]
[Link]', arrz
Ci] cjj,

3
udhbswaPhTN6
re turn0;

Name : Regd. No.:


ODISHA UNIVERSITY OF
TECHNOLOGY AND RESEARCH,
Department of
BHUBANESSWAR
Engineering

Senester
SheetNo. 46 Date

MAP to ad adnalk ofamapk.


inclde sdie.h>
C3J[B], i, ,
int
Prin
ar

f (°Et erc +heelemenls


Surnb}
o matri :
"):
For (i 0, 3,1++ )S
S
)
foc Cj :j<3,3t+
Ccank C^y. farrCiru

Scm t arr Cilcj,

return0j

Name : Regd. No.:

You might also like