Advertisement
Aminpro

[ECP 1016]Tutorial 8 Question 7

Aug 12th, 2012
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. //https://www.facebook.com/AminproPastebin
  2.  
  3. #include <stdio.h>
  4. #define SIZE 10
  5.  
  6. int main(){
  7. int i;
  8.  
  9. float numbers[SIZE] = {0.0,1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9};
  10. float *nPtr = numbers;
  11.  
  12. for(i=0; i<SIZE; i++){
  13. printf("%.1f\n", *(nPtr+i));
  14.  
  15.  
  16.  
  17. }
  18.  
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement