answersLogoWhite

0

What else can I help you with?

Related Questions

What is the datatype of FILE in C?

FILE is a data-type (a struct, to be precise).


Examples on structures of C programming?

'struct tm' (time.h) and 'FILE' (stdio.h)


Which of the following is not a variable data type real integer number or string?

FILE, struct stat and struct tm are some examples.


What is the difference between struct and union in c file management?

The main difference is in how the data structures are stored. In a union, all of the elements are stored in one location. A structure stores each of its elements in a separate memory location.


How does the root struct in destruction help you understand?

What does struct mean in in


What is the meaning of the word struct?

"struct" is not a word.


Is there a limit to nesting of structure?

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 */ };


Draw the node single linked list and double linked list?

typedef struct ListNode {struct ListNode *next;anytype data;} ListNode;typedef struct BiListNode {struct BiListNode *next;struct BiListNode *prev;anytype data;} BiListNode;


Can structures be nested in c?

yes. struct a { int x; int y; } struct b{ int z; struct a w; }


What is the difference between declaring variable and initializing variables?

Actually, there is a third step, call definition. Declaration is a statement to the compiler of what type an identifier is, definition is the allocation of memory for that identifier, and initialization is the assignment of an initial value to that identifier. Usually, declaration and definition are done together, but you can also add initialization in that step if desired. int a; /* declaration and definition */ a = 1; /* initialization */ int a = 1; /* declaration, definition, and initialization */ For the case of seperate declaration and definition, consider the struct... struct _mystruct { int a; }; /*declaration */ struct _mystruct mystruct; /* definition */ struct _mystruct { int a; } mystruct; /*declaration and definition */ Note: To be more precise: struct _mystruct; /* struct declaration */ struct _mystruct { int a; }; /* struct definition */ typedef struct _mystruct MYTYPE; /* type definition */ extern struct _mystruct mystructvar; /* variable declaration */ struct _mystruct mystructvar; /* variable definition */ struct _mystruct mystructvar = {7} ; /* variable definition with initialization */ struct _mystruct { int a; } mystruct; /* struct definition and variable definition */ extern struct _mystruct { int a; } mystruct; /* struct definition and variable declaration */


Demonstrate single inheritance in C plus plus?

struct base1 { // ... }; struct base2 { // ... }; struct derived1 : public base1 // single inheritance { // ... }; struct derived2 : public base1, public base2 // multiple inheritance { // ... };


Can a Structure contain a Pointer to itself?

Yes, it is quite common. Example: struct List { struct List *Next; int value; } typedef struct List List; Example2: typedef struct Tree Tree; struct Tree { Tree *left,*right; int value; };