I want to ask that is there a way through which I can convert some part of int array to int variable
for example
// my integer array contain 3,4,5,2,7
int array[] = {3,4,5 ,7,1,5,5,} ;
and i want a variable int to contain only first 3 member of array that is my variable should be like this
`
int var = 345 ; // first three array members
i am using c programming thanks