Sunday, August 15, 2021

First C Program, size of Integer in C

First Program of C

#include <stdio.h>

int main() {
    // Write C code here
    printf("Hello world");
    
    return 0;

OUTPUT

Hello world 

2) Write a program to find the size of integer datatype

#include<stdio.h>
int main()
{
int x;
printf("value of int = %d ",sizeof (x));
return 0;
}

 OUTPUT

value of int = 4  
 




No comments:

Post a Comment