C Program:
#include<stdio.h> void main() {
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
#include<stdio.h> void main() {
#include<stdio.h> struct student { char name[5]; int roll; int mysize; }; main() { unsigned long int b; printf("size of variable b: %d",sizeof b); printf("\nsize of int:%d",sizeof(int)); printf("\nsize of float:%d",sizeof(float)); printf("\nsize of char:%d",sizeof(char)); printf("\nsize of long:%d",sizeof(long)); printf("\nsize of double:%d",sizeof(double)); printf("\nsize of short:%d",sizeof(short)); struct student s1; s1.mysize=sizeof(s1.name)+sizeof(s1.roll)+sizeof(s1.mysize); printf("\nSizeof structure student :%d",s1.mysize); /*see the difference shown in size of structure */ printf("\nsize of structure student : %d",sizeof(struct student)); }