char c "GATE2011";
char *p =c;
printf "%s", p+p 3 p 1 ;
=
the output is 2011
can any one explain how?
vgd 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
vgd 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vgd 0 Newbie Poster
zaraki 0 Newbie Poster
smilenow 17 Newbie Poster
smilenow 17 Newbie Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
smilenow 17 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Santi1986 0 Newbie Poster
smilenow 17 Newbie Poster
smilenow 17 Newbie Poster
Ancient Dragon commented: right +17
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.