Friday 29 July 2016

What is the output of below C program? If it gives error Please correct code.

#include <stdio.h>

main()
{
        int *p = NULL;

        *p = 2;

        printf("Value of *p %d\n", *p);

        return 0;
}

No comments:

Post a Comment