int array[5], i, *ip;
for(i = 0; i < 5; i++) array[i] = i;
ip = array;
printf("%d\n", *(ip + 3 * sizeof(int)));
a.Won't compile
b.3
c.4
d.indeterminate
struct node
{
char a;
char b;
char c;
};
struct node s= { 3, 5,6 };
struct node *pt = &s;
printf("%d" , (short)pt);
a.indeterminate
b.1283
c.5
d.3
char *p = "hello, world!";
p[0] = 'H';
printf("%s\n" , p);
a.Hello, World!
b.hello, World!
c.Won't compile
d.Program will crash
Edited by WingedPanther, 26 January 2009 - 04:23 AM.
add code tags (the # button)


Sign In
Create Account

Back to top










