Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #37.0K
~143 People Reached
Favorite Forums
Favorite Tags
c x 5
Member Avatar for vgd

the answer is 2011 [CODE]#include<stdio.h> void main() { char c[]="gate2011"; char *p=c; printf("%s",p+p[3]+p[1]); getch(); }[/CODE] But really i cannot find out that how did it came.printing p[3]or for any i p[i]alone does not give any thing except garbage value ,on the other hand printing p gives gate2011. can anyone explain?plzzz

Member Avatar for smilenow
0
143