I am trying to do a simple division with a llu, but it is not working???? I keep on getting 0 as the %d value in the second printf statment.
main(void)
{
printf("RLIM_INFINITY as unsigned %u = %d MB\n",
RLIM_INFINITY, RLIM_INFINITY/(1024*1024))...
I am writting a program that needs to parse argv as most programs do,
here is what I have:
while ((c = getopt(argc, argv, "q:")) != EOF) {
switch (c) {
case 'q':
qname = optarg;
break;
default:
usage(); /* Usage...
Here is my test prog. Why is it that p1 and p2 do not have to be dereferenced?
char *p1 = "Hello";
char *p2 = "World!";
printf("%s %s", p1, p2); ---> *p1 and *p2
Thanks,
Tony
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.