Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need C example of using sturcture

Status
Not open for further replies.

omerji_88

Newbie level 1
Newbie level 1
Joined
Apr 25, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
use of sturcture

give a sample programme using structure
 

Re: use of sturcture

on c??
#include <stdio.h>
struct{
int a;
int b;
}v;

int main(void)
{
v.a=-2;
printf("ing. b on struct:");
scanf("%d",&v.b);
printf ("a=%d y b=%d\n",v.a,v.b);

}


enjoy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top