![]() |
The way it works is as follows: Consider the current time in number of seconds since midnight. This is a number between 0 and 24*3600. Now:
A. 00:15 C. 03:55 E. 07:56 G. 12:12 I. 15:34 B. 03:24 D. 07:42 F. 11:05 H. 15:04 J. 23:16
int main()
{
int i;
memcpy(&i, "cade", 4); /* memcpy is memcpy(void *dest, void *src, int bytes); */
printf("0x%x\n", i);
return 0;
}
|
int main()
{
char s[60];
s[0] = 'm';
s[1] = '\0';
s[2] = 'x';
s[3] = 'y';
s[4] = 'z';
strcat(s, "ab");
printf("%s\n", s);
return 0;
}
|