Need C example of using sturcture

Status
Not open for further replies.

omerji_88

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…