Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simple-sitemap domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simple-sitemap domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-member domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpforms-lite domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u246705441/domains/gangofcrypto.com/public_html/wp-includes/functions.php on line 6114
Representation of Data types in C - Gang of Crypto

Representation of Data types in C

Data types in C Language

Representation-of-Data-types-in-C

How Data types are represented in C ?

Each of the primary data type is represented uniquely in C Language. This actually used to print the value of the data type in programs. To access a specific data type we need to represent it in C.

  1. Integer type (int)                           –      %d
  2. Floating type(float)                       –      %f
  3. Character type(char)                    –      %c
  4. Double type(double)                      –      %e   (or) %E
  5. Long double                                     –      %lf

Program using different data types

What we do ?

Print each kind of data type using different representations in a single C Program.

//Program to print Different Data Types
#include<stdio.h>
void main(){
    int i;
    char c;
    float f;
    double d;
    i=2;
    c='M';
    f=2.35;
    d=123456;
//Printing Values
    printf("\n Integer is %d",i);
    printf("\n Character is %c",c);
    printf("\n Floar is %f",f);
    printf("\n Double  is %d",d);
    
    
} 
OUTPUT:

integer is 2
character is M
Float is 2.35
double is 123456