how to do binary bit addition operation

R

rsk

Hi friends,

There are two integer arrays oper1[7] and oper2[7]
i have to do the addition of these two arrays and store the result in
sum[8] .

Please solve this prob.

Thanks in advance.
SS...
 
M

Martin Wells

rsk:
Hi friends,

There are two integer arrays oper1[7] and oper2[7]
i have to do the addition of these two arrays and store the result in
sum[8] .

Please solve this prob.

Thanks in advance.
SS...


int[5] Func(int[5] *pa,int[5] *pb)
{
int[5] c;

unsigned i;

for(i = 0; while(i <= 5); continue ++i) c = *pa & *pb;

push_stack(c);

pop();

return;
}

Martin
 
P

Peter 'Shaggy' Haywood

Groovy hepcat Martin Wells was jivin' in comp.lang.c on Tue, 2 Oct 2007
3:17 am. It's a cool scene! Dig it.
rsk:
There are two integer arrays oper1[7] and oper2[7]
i have to do the addition of these two arrays and store the result in
sum[8] .

Please solve this prob.

(To the OP.) No. We'll help you solve the "prob" yourself, if you put
in some effort. But we will not solve it for you. Post your best
effort, explain the problem and ask specific questions, and you may get
the help you need.
int[5] Func(int[5] *pa,int[5] *pb)
{
int[5] c;

unsigned i;

for(i = 0; while(i <= 5); continue ++i) c = *pa & *pb;

push_stack(c);

pop();

return;
}

Martin


Oh so helpful! Martin, I don't know what the hell that's meant to be,
but it's not C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top