Monday, 6 December 2021

size allocation

 #include <stdio.h>

int main()
{
    printf ("%lu", sizeof(int));
    return 0;
}
this will give you a value of 4
for x64 architecture
whereas in basis x32 bit architecture
whose values are quite different
char 1 byte
int 2 byte
float 4 byte
double 8 byte
long double 10 byte

//data types
//basic data type:- int, char, float, double. (sub basics are signed, unsigned, long)
//derived data type:- array, pointer, structure, string union
//void data type :- void (empty)
//enumaration data type :- enum



No comments:

Post a Comment

here we are to help you.you can watch videos and get information about :- (1) scientific facts (2) education (3) gaming (4) music (5) lyrics (6) cartoons and many more.So keep watching keep learning, thank you.

Recurtions

  //Why are recursions? //We can solve difficult long iteratively can be solved simply recursively. // there are some problems which suite...