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
Learn C programming skills, test your c skill. C Interview questions.
No comments:
Post a Comment