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> void main() { int x,y,temp; printf("Enter the value of xand y\n"); scanf("%d%d", &x, &y); printf("Before Swapping\n x= %d\n y = %d\n",x,y); temp = x; x= y; y = temp; printf("After Swapping\n x= %d\ny= %d\n",x,y); }
#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)); }