Write a c program to demonstrate structure
#include<stdio.h>
#include<conio.h>
void main()
{
struct test
{
int a;
int b;
}t;
clrscr();
t.a=10;
t.b=20;
printf("The value of a=%d\n",t.a);
printf("The value of b=%d\n",t.b);
getch();
}
Output:
The value of a=10
No comments: