Top

Discussion

Output?

# include
# include
  
void fun(int *a)
{
    a = (int*)malloc(sizeof(int));
}
  
int main()
{
    int *p;
    fun(p);
    *p = 6;
    printf("%dn",*p);
    return(0);
}

 

  • A.May not work
  • B.Works and prints 6

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment