Link to home
Start Free TrialLog in
Avatar of rkcth
rkcth

asked on

ercis

Please answer this for your points.
Avatar of nietod
nietod

I believe this is for

https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=10299447 

correct?  (Always good to provide "justification".)
ASKER CERTIFIED SOLUTION
Avatar of ercis
ercis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Instead of

p = (char *)IMAGE_GIF1;
e = p + l1;

do
{
   putchar(*p);
}
while (++p < e);

I would just do

cout.write(IMAGE_GIF1,sizeof(IMAGE_GIF1));

it is simpler and likely to be faster.
yes, but I'm talking about C, not C++
But this is the C++ topic area.  We kill for less.  :-)
nietod: sorry, I omited that :)