Online GK Series

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

Q.

Output of the following program will be

	main()
	{
		int a[]={1,2,9,8,6,3,5,7,8,9};
		int *p=a+1;
		int *q=a+6;
		printf("\n%d",q-p);
	}
	
A 9
B 5
C 2
D None of these
Answer & Explanation
Option: [B]

mcq on c programming pointer 04 - gkseries.com

Computer Science Books

Your Valuable Comments Please...

Please Like Us
Brand