Programmator
Programmator
  • Home
  • Download
  • Social
    • YouTube
    • Instagram
    • Facebook
    • Telegram
  • Features
    • C/C++
    • Java
  • Contact Us
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.
Design a structure student_record to contain name, branch and total marks obtained. Develop a program to read data for 10 students in a class and print them

In this program, a structure (student) is created which contains name, Branch and marks as its data member.
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.
Newer Posts Older Posts Home

Loading latest videos...

ABOUT

Signature
I could look back at my life and get a good story out of it. It's a picture of somebody trying to figure things out.

SUBSCRIBE & FOLLOW

POPULAR POSTS

  • Engineering Graphics & Design (3110013) Semester 1 & 2 Summer 2025 GTU Solved Paper
  • GTU Basic Electrical Engineering (3110005) Semester 1 Summer 2026 Solved Paper
  • Agile Development and UI/UX design Summer 2023 GTU Paper Solution
  • GTU Basic Mechanical Engineering (3110006) Semester Semester 1/2 Winter 2025 Solved Paper
  • Write a C program to interchange two numbers
Powered by Blogger

Archive

  • November 20261
  • October 20268
  • September 20262
  • November 20251
  • February 20241
  • January 20242
  • November 20234
  • October 20236
  • September 20236
  • August 20235
  • April 20231
  • March 20231
  • October 20221
  • August 20223
  • July 20222
  • May 20223
  • April 20222
  • March 20221
  • January 20221
  • December 20216
  • November 20214
  • October 20211
  • September 20216
  • August 202127
  • July 20216

Report Abuse

Copyright

  • Home

Contributors

  • Nilesh Patel
  • Nilesh Patel
Programmator Footer Logo

Copyright © Programmator. Designed by ProbleSolvable