#include<stdio.h> #include<stdlib.h> #define NULL 0 struct info { int info; struct info *next; struct info *prev; }; struct info *start,*end; void main() { struct info *ptr; if(start==NULL) { printf("linklist is empty"); } else { ptr=(struct info *)malloc(sizeof(struct info)); ptr=start; if(start==end) { start=NULL; end=NULL; } else { start=start->next; start->prev=NULL; } free(ptr); } }
construe,construct, construction,desruction, destruct, infrastracure, instruct,instructive, instructor, misconstrue, obstruction, reconstruct, substructure, superstructure Struct - to build
Some words that contain the letters 'struct' are:constructdeconstructdestructionindestructibleinfrastructureinstructobstructpreconstructedreconstructstructureunconstructeduninstructedunobstructedunstructured
Break the word into the smallest meaning then find the prefix and the last bit of words should be your awnser....... struct
What does struct mean in in
"struct" is not a word.
construct late Middle English: from Latin construct- 'heaped together, built,' from the verb construere, from con- 'together' + struere 'pile, build.'
Yes: only completely defined structured can be included (that doesn't include the actual structure itself). Example: struct a; struct b { int b1; }; struct c { struct a; /* BAD */ struct b; /* OK */ struct c; /* BAD */ };
# include < stdio.h > # include < stdlib.h > struct list { char info[20]; struct list *next; struct list *prev; }; struct list *new1,*node; void create(struct list *s,struct list *e) { char ch; node=s; printf("\nWant to create a node(y/n):"); ch=getche(); while (ch != 'n') { node->next = (struct list *) malloc(sizeof(struct list)); node->next->prev= node; node = node->next; printf("\n Enter the string value:- "); gets(node->info); node->next = e; e->prev=node; printf("\n Enter choice--'n' for break: "); ch = getche(); } } void displayL (struct list *s,struct list *e) { node = s->next; while (node!=e) { printf(" 0x%x--%s", node,node->info); node = node->next; } printf("\n"); } void displayR (struct list *e,struct list *s) { node = e->prev; while (node!=s) { printf(" 0x%x--%s", node,node->info); node = node->prev; } printf("\n"); } void insertA(struct list *s) { struct list *new1; int c=1,count; printf("\nEnter the location:"); scanf("%d",&count); fflush(stdin); new1 = (struct list *) malloc(sizeof(struct list)); printf("\nEnter the new value:"); gets(new1->info); node=s->next; while(node) { if(c==count) break; node=node->next; c++; } node->prev->next=new1; new1->prev=node->prev; new1->next=node; node->prev=new1; } void main() { struct list *start,*end; clrscr(); start=(struct list *) malloc(sizeof(struct list)); end=(struct list *) malloc(sizeof(struct list)); create(start,end); printf("\n Created list is as follows(L ->R)\n"); displayL(start,end); printf("\n Created list displayed from R->L\n"); displayR(end,start); printf("\nInserting a new location at user specified location\n"); insertA(start); printf("\n now the listfrom L ->R\n"); displayL(start,end); printf("\n list from R to L after insertion\n"); displayR(end,start); getch(); }
construct, obstruct, instruct, structure, infrastructure, microstructure, restructure, superstructure, substructure
typedef struct ListNode {struct ListNode *next;anytype data;} ListNode;typedef struct BiListNode {struct BiListNode *next;struct BiListNode *prev;anytype data;} BiListNode;
yes. struct a { int x; int y; } struct b{ int z; struct a w; }