Write a program to access elements using pointer
In this program, we will learn to create a C program that will Access Elements of an Array Using Pointer using C programming.
Write a C program to print the address of character and the character of string using pointer
In this program we are going to print address of character and string using pointers.
Write a C program to swap the two values using pointers
Method 1.
In this program we are going to swap two numbers using pointers.
In this tutorial, we will learn about how to create a program in C that prints address of any variable. At last we will also learn about printing an address of a variable in C using pointer.
Define a structure called cricket that will describe the following information
Player name
Team name
Batting average
Using cricket, declare an array player with 5 elements and write a C program to read the information about all the 5 players and print team wise list containing names of players with their batting average.
C Program using structure for time format
Define structure data type called time_struct containing three member’s integer hour, integer minute and integer second.
Define a structure type struct personal that would contain person name, date of joining and salary using this structure to read this information of 5 people and print the same on screen
C Program to read and print employee details
In this program we are going to implement a structure Personal which contains name, date of joining and salary of employees.
Initialization of global and static variables in C
Write a C program using global variable, static variable.
In C language both the global and static variables must be initialized with constant values.
Write a program to read structure elements from keyboard
Store Information and display it using structure
In this program, a structure book is created. The structure has three members: Id(Int), Name(char), price(float).