Monday, 9 May 2016

Structures in C Language

#include <stdio.h>
 
struct prog
{
    float const;
    char *point;
};
 
main()
{
   struct prog var;
   char string[] = "Program in C Language.";   
 
   var.const = 1.23;
   var.point = string;
 
   printf("%f\n", var.const);
   printf("%s\n", var.point);
 
   return 0;
}

No comments:

Post a Comment