Skip to content

Instantly share code, notes, and snippets.

@sutirthaC97
Created April 9, 2017 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sutirthaC97/68f9144ae9f7766b611d54533211fdc6 to your computer and use it in GitHub Desktop.
Save sutirthaC97/68f9144ae9f7766b611d54533211fdc6 to your computer and use it in GitHub Desktop.
Usage of typedef.
#include <stdio.h>
typedef double dbl; //Now dbl can be used anywhere in the program we need to write double.
int main()
{
dbl a = 21.3987;
printf("The value of a is : %lf ", a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment