Sunday, 4 August 2013

INTERNAL REPRESENTATION OF BOOLEAN DATATYPES

QUES:-
Find/verify how boolean data types are internally represented.
ANS:-
/********************************************************************************/
#include<stdio.h>
#include<conio.h>

int main()
{
int i=8,j=9;
clrscr();
printf("%d\n%d\n",(i>j),(j>i));
printf("%d",sizeof(i+j));
getch();
return 1;
}
/*******************************************************************************/

No comments:

Post a Comment