To get latest updates

Bookmark This Site

Thursday, 27 October 2016

66.C Program to Calculate Difference Between Two Time Periods

C Program to Calculate Difference Between Two Time Periods

In this example, you'll learn to calculate the difference between two time periods using user defined - differenceBetweenTimePeriod function.
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming User-defined functions
  • C Programming Structure
  • How to pass structure to a function in C programming?
  • C Programming Structure and Pointer


65.C Program to Add Two Complex Numbers by Passing Structure to a Function

C Program to Add Two Complex Numbers by Passing Structure to a Function

This program takes two complex numbers as structures and adds them with the use of functions.
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Structure
  • How to pass structure to a function in C programming?


64.C Program to Add Two Distances (in inch-feet) System Using Structures

C Program to Add Two Distances (in inch-feet) System Using Structures

This program takes two distances (in inch-feet system), adds them and displays the result on the screen.
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Structure

Example: Program to add two distances in inch-feet system

63.C Program to Store Information(name, roll and marks) of a Student Using Structure

C Program to Store Information(name, roll and marks) of a Student Using Structure

This program stores the information (name, roll and marks) of a student and displays it on the screen using structures.
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Structure

Wednesday, 26 October 2016

62.C Program to Sort Elements in Lexicographical Order (Dictionary Order)

C Program to Sort Elements in Lexicographical Order (Dictionary Order)

This program sorts the 10 strings (entered by the user) in lexicographical order (dictionary order).
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Multidimensional Arrays
  • C Programming Strings
  • String Manipulations In C Programming Using Library Functions


61.C Program to Copy String Without Using strcpy()

C Program to Copy String Without Using strcpy()

In this article, you'll learn to copy string without using the library function strcpy().
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Arrays
  • C Programming Strings
  • C Programming for Loop

60.C Program to Concatenate Two Strings

C Program to Concatenate Two Strings

To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Arrays
  • C Programming Strings
  • C Programming for Loop