Hi guys,

Would someone please let me know the difference between these two:

struct node* branch; // this statement
struct node *branch; // && this statement

Thanks.

There is no difference because C compiler normally ignore spaces. You can code it either way unless your instructor (assuming you are a student) or other coding standards say otherwised.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.