TheSuyog
unread,Mar 2, 2011, 3:56:35 AM3/2/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Knowledge Test
The compiler does not identify {} as any recognizable expression. The
array definition: int a[] = { 1, 2, 3}; allocates memory spaces to the
elements and evaluates the memory address which is assigned to the
array name 'a', a pointer. Hence only {} can not evaluate to
anything, that's why it generates an error. I hope I've made it
clear. :)