Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET


	char *ptr;
	char myString[]="abcdefg";

The pointer ptr points to which string?

A fg
B efg
C defg
D cdefg
Answer & Explanation
Option: [A]

ptr+=5 means ptr=ptr+5

That means the pointer variable is incremented by 5. Hence it is pointing to the 6th location. i.e. fg

buy ebooks

Computer Science Books

Your Valuable Comments Please...

Please Like Us
100% payment protection