#include<stdio.h>
int main()
{
printf("Welcome to DataFlair tutorials!
");
int i;
double array[5] = {1.1, 2.2, 3.3, 4.4, 5.5};
double *p;
p = array;
printf( "The array is:
");
for ( i = 0; i < 5; i++ )
{
printf("%0.2f
", *(p + i) ); // Pointer to an array
}
return 0;
}
Code Example |
---|
C :: c functions example |
C :: houdini vex loop over points |
C :: ft_putchar |
C :: bootstrap 4 forms |
C :: c code to grade marks |
C :: keep last n bits |
C :: getchar |
C :: malloc basics |
C :: adjacency matrix representation maker |
C :: gcd and lcd in c |
C :: how to allocate memory for pointer in c |
C :: mongodb read |
C :: passing file as argument in c |
C :: c linked list |
C :: how to change file permissions in C language |
C :: ex: C hello world |
C :: command line arguments c |
C :: c size_t |
C :: c malloc array |
C :: static variable c |
C :: what is console in sublime text |
C :: printing words lemgthwise in c |
C :: Print mark-sheet of students |
C :: how tier lists work |
C :: install lib juicyPixel in haskell |
C :: tytykjtuky |
C :: clipboard lib |
C :: pebble scripting Boolean expression |
C :: Implement N-Queen Problem |
C :: Integer Input/Output |