are u genious in programming ?

Level pending

What will print out? main() { char p1="name"; char *p2; p2=(char )malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++); printf("%sn",p2); }

name empty string 20 address of name

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...