Unions in C Language | Learn C Language

C Unions Union is a data type with two or more member similar to structure but in this case all the members share a common memory location. The size of the union corresponds to the length of the largest member. Since the member share a common location they have the same starting address. Major difference between c unions and structure …

Read More

C Structure | Difference Between Array and Structure | Learn C

C Structure When we write a program, it is important to choose an optimal and best way to represent the data that further use in program. In general, scalar variables and arrays are sufficient. For example, in your program, you may want to refer to a student that holds multiple fields including Roll number, name, age, city, state and country. …

Read More