IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
COne Dimensional Arrays : Initialiazing an Array
<07.01>
/* Problem: This program initializes an array with all cells filled with the same value (0.0 in this example) */ #include <stdio.h> #define SIZE 100 /* size of the array */ #define VALUE 0.0 int main (void) { double x[SIZE]; int i; /* initializing the array with the same value */ for (i=0; i<SIZE; ++i) x[i] = VALUE; /* printing the array for verification */ for (i=0; i<SIZE; ++i) printf ("%5.1lf", x[i]); return (0); }
Hergestellt in Deutschland / Made in Germany
₿ Win up to $200 in Bitcoins every hour! - Click Here! ₿
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
 
COPYRIGHT © 2015-2025 IHY PRESS Frankfurt am Main 60329 Deutschland