Skip to content

Commit

Permalink
transfer code block and create pointersAndStructures
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalxkumar committed Apr 14, 2024
1 parent ce4f2fc commit 6d8eb25
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
16 changes: 16 additions & 0 deletions src/Learning-C/Pointers/pointersAndStructures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pointers and Structures

```c
struct stud{
int roll;
char dept_code[25];
float cgpa;
} class, *ptr;

struct book{
char Name[20];
float price;
char ISB[30];
}; struct book b, *br;
```

14 changes: 0 additions & 14 deletions src/Learning-C/Pointers/pointers_contd.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ int main() {
```
~~~

```c
struct stud{
int roll;
char dept_code[25];
float cgpa;
} class, *ptr;

struct book{
char Name[20];
float price;
char ISB[30];
}; struct book b, *br;
```


-----

Expand Down
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- [Pointers and Functions](./Learning-C/Pointers/pointersAndFunction.md)
- [Pointers and 1D Arrays](./Learning-C/Pointers/pointersAnd1DArrays.md)
- [Pointers and 2D Arrays](./Learning-C/Pointers/pointersAnd2DArrays.md)
- [Pointers and Structures](./Learning-C/Pointers/pointersAndStructures.md)
- [Acknowledgements](./Learning-C/Acknowledgements.md)

---
Expand Down

0 comments on commit 6d8eb25

Please sign in to comment.