w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
What is 'forward declaration' and the difference between 'typedef struct X' and 'struct X'?

struct_alias and struct NAME are same ,struct_alias is an alias to struct NAME

These both are same and allowed

struct_alias variable1;  

struct NAME variable1; 

this is illegal

NAME variable3;   

See this article on Forward declaration





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.