Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

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
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP
Assam Direct Recruitment Test Series

Computer Science Topics