Pages

Write a program to print your name, car name, and its number through structure in c

Monday, 22 April 2013

#include <stdio.h>
#include <conio.h>
struct cardata{
      char *ownername;
      char *carname;
      int regno;
      }
      info1, info2, info3;
   
    int main()
      {
          struct cardata;
       
          info1.ownername="ammar";
          info2.carname="suzuki";
          info3.regno=1233;
       
          printf("car data is ownername is %s \ncarname is %s \nregno is  %d \n", info1.ownername, info2.carname, info3.regno);
          getch();
          }

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *