PROGRAMMING

C Programming Enumeration

C Programming Enumeration

In this chapter you will learn how to work with C  programming enumeration. Besides enum, you will also know where it is commonly used in C programming . C Programming Enumeration In C programming, enumeration is a user-defined data type that consists of integral constants. enumThe keyword is used to define the enumeration . Here flag is user defined data type And   constant1 , constant2 ,….,  constantN are values

C Programming Enumeration Read More »

How to pass structure through function in C programming?

How to pass structure through function in C programming?

In this chapter you will see some examples of passing structures as arguments to functions and learn how to use them in your programs. How to pass structure through function in C programming? In C program structure can be passed through function in two ways: Passing by value Passing by reference Passing the structure as a value Structures can

How to pass structure through function in C programming? Read More »

C Programming Structure and Pointer

C Programming Structure and Pointer

In this chapter you will see some relevant examples of structures and pointers that will help you access data using pointers from structures. C Programming Structures and Pointers Structures can be both created and accessed using pointers . A pointer variable of structure type can be created as follows: struct name A pointer variable of type(*ptr) is created in the above

C Programming Structure and Pointer Read More »