in reply to passing arguments to c prog

Since your Perl one-liner seems to indicate that you work on some flavor of Unix, you could simply redirect the output toward your C program:

perl -e 'print "AAAA"."BBBB"."\x44\x84\n";' > test.c

Or, if you just want to append the output to an existing C program file:

perl -e 'print "AAAA"."BBBB"."\x44\x84\n";' >> test.c

Update: from your new message on Aug 24, 2013 at 17:53 UTC, it looks like I completely misunderstood your requirement. Sorry about that and forget the above.