google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a c program to demonstrate structure - 2nd puc computer science

Write a c program to demonstrate structure

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

The value of b=20
Write a c program to demonstrate structure Write a c program to demonstrate structure Reviewed by Vision Academy on December 14, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.