Comeasy

Comment on the output of following code:

It will print a It will print 0 run time error compile time error

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Hasmik Garyaka
Sep 11, 2017

Pointer is 0 means we cannot write anything on that address. To use a pointer we must alloc memory first.

Rishabh Sood
Mar 8, 2016

Answer:d
Output:
$ cc pgm.c
$ a.out
Segmentation fault (core dumped)


Answer:d

Output:

$ cc pgm.c

$ a.out

Segmentation fault (core dumped)

Rishabh Sood - 5 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...