Q5B - { printf("\npoint is...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<stdio.h> #include<conio.h> void main() { int a[10]; int i,s=0; int *p; clrscr(); for(i=0;i<10;i++) scanf("%d",&a[i]); p=&a[0]; for(i=0;i<10;i++)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { printf(&amp;quot;\npoint is &amp;quot;,p); p++; } p=&amp;amp;a[0]; for(i=0;i&amp;lt;10;i++) { s=s+(*p); p=p+1; } printf(&amp;quot;Sum is &amp;quot;,s); getch(); }...
View Full Document

Ask a homework question - tutors are online