2) void squared(void *nbr)
{
*nbr *= *nbr;
}
int main()
{
int a = 2;
squared((void *)a);
return 0;
}
Choice:
a)Error
b)4
c)4 with warning
d)2
e)Segmentation Fault
Showing posts with label Compilation. Show all posts
Showing posts with label Compilation. Show all posts
Monday, February 15, 2010
Subscribe to:
Posts (Atom)