Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Passing an array of constants to function [09 Jul 2010|03:21pm]
Assume we have a function CheckSomething(BYTE baParams[]). Then we can call it like this:

BYTE baMyParams[] = {0x21,0x35};
CheckSomething(baMyParams);

Question is: how to pass an array of values without using extra variables? Something like CheckSomething({0x21,0x35})? - this doesn't work:(
14 comments|post comment

navigation
[ viewing | July 9th, 2010 ]
[ go | previous day|next day ]
Image