Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
User Journal

Journal Journal: New Feature Of Windows XP (Will Be In Service Pack 2)

#include <stdio.h>
#include <ctype.h>
int main()
{
char name[] = "Billy Madison";
int i=1;
printf("Char %d of %s is %c\n", i, name, name[i]);
i+=6;
printf("Char %d of %s is %c\n", ++i, name, name[i++]);
/* Assume arguments are parsed from left to right */
printf("i = %d\n", i);
i = 17 % 3;
printf("Char %d of %s is %c\n", i, name, name[i]);
printf("%s is better!\n",
isdigit(i) ? "Conditioner" : "Shampoo");
for(i=0; i<sizeof(name)-9; i++)
printf("%c\t", name[i]);
printf("\n");
return (0);
}

Slashdot Top Deals

The solution to a problem changes the nature of the problem. -- Peer

Working...