c programming 5 - printf("\n\n")

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 #include <stdio.h> int main() { void display(int a[], int n) int channels[7] = {2, 4, 5, 7, 9, 11, 13} int i for (i = 0 { printf("Element %d is %d\n", i, *(channels + i)) } display(channels,7) for (i = 0 { printf("\nElement %d is %d", i, *channels) }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: printf(&quot;\n\n&quot;) system(&quot;PAUSE&quot;) return 0 } void display(int a, int n) { int i, j for (j = 0 j = a[7]++ i&lt;7 i++) i&lt;7 i++) j&lt;n j++) } Page 1...
View Full Document

Page1 / 2

c programming 5 - printf(&amp;amp;quot;\n\n&amp;amp;quot;)

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online