Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
#include<stdio.h> struct Node{ int data; struct Node* next; }; Here I used an asterisk after Node. What is it used for? What if I don't put any asterisk after Node (both Node...
#4: Post edited
What's the importance of asterisk after few type?
- Why use an asterisk after a type?
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
- };
- ```
Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure).- Is `*ptr` and `ptr*` same?
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
- };
- ```
- Here I used an asterisk after `Node`. What is it used for? What if I don't put any asterisk after `Node` (both `Node`'s are structures)?
- Is `*ptr` and `ptr*` same?
#3: Post edited
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
- };
- ```
Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure).
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
- };
- ```
- Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure).
- Is `*ptr` and `ptr*` same?
#2: Post edited
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
}- ```
- Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure).
- ```c
- #include<stdio.h>
- struct Node{
- int data;
- struct Node* next;
- };
- ```
- Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure).