Search
 
SCRIPT & CODE EXAMPLE
 

C

write a c program to find size of variable

#include <stdio.h>

int main()
{
    int a;
    float b;
    char c;
    double d;

    printf("%d is the size of integer
", sizeof(int));
    printf("%d is the size of float
", sizeof(float));
    printf("%d is the size of character
", sizeof(char));
    printf("%d is the size of double
", sizeof(double));

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: signal function c 
C :: responsive form bootstrap 4 
C :: how to convert int in to const char in c 
C :: form controls in bootsrap 
C :: c program that replace vowels in a string with char 
C :: latex remove page number from footer 
C :: printing out an array in c from user input 
C :: DrawText() raylib 
C :: link list c 
C :: malloc 
C :: declare string in c 
C :: c calculate median 
C :: How to copy one string into another in C 
C :: Float and Double Input/Output 
C :: powershell list big files 
C :: c assignment operators 
C :: algorithm for dequeue 
C :: snprintf c 
C :: %g and %e in c 
C :: Increment & Decrement Operator in C language 
C :: typedef c 
C :: C Accessing Union Members 
C :: allocating memory for 1Mb text file in C 
C :: router solicitation and advertisement magic is used by 
C :: parcel-bundler include image files 
C :: convert c to python online 
C :: input multipal data types 
C :: 157.245.33.77: 
C :: Convert arduino String to C language String 
C :: c language dictionary implemet 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =