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.
Comments on Why use an asterisk after a type?
Post
Why use an asterisk after a type?
+3
−0
#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?
1 comment thread