Join our Telegram Channel

Question

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

Advertisement

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Advertisement
GkSeries apsc prelims 2023 test series

Today's Top Current Affairs

Current Affairs MCQs

State-wise Current Affairs

General Knowledge

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test