I\'m debugging a network application.
I have to simulate some of the data exchanged in order for the application to work. In C++ you can do something like
Just for the sake of completeness, with C99 you can also use compound literals:
char *myArray = (char []) {0x00, 0x11, 0x22 };
If source code compatibility to C++ is a requirement, you better don't use this construct, because it is - afaik - not part of the C++ standard.