Professional Documents
Culture Documents
Background Theory - Structure
Background Theory - Structure
Background Theory - Structure
File handling
Q1. What is structure? Explain with examples
int main() {
// Declare a variable of type 'struct
Person'
struct Person person1;
return 0;
}
FILE *fptr;
fptr = fopen("example.txt", "w");
Memory Allocation:
Accessing Members:
Memory Usage: