Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

declare structure in c

struct num{
 int a ;
 int b;
};

int main()
{
    struct num n;
    //accessing the elements inside struct
    n.a=10;
    n.b=20;
}

 
PREVIOUS NEXT
Tagged: #declare #structure
ADD COMMENT
Topic
Name
4+8 =