I was playing around with bool variables. I am aware that boolean is used to represent a true (any other number besides 0) or false (the number 0). I realized that the variables create random integer numbers. I was wondering if one can one use boolean variables to generate random numbers? Can someone please elaborate on this behaviour caused by the keyword boolean?
My code is as follows:
#include<stdio.h>
#include<stdbool.h>
int main()
{
bool a,b,c,d,e,f,g,h,i,j,k;
printf("%d\n",a);
printf("%d\n",b);
printf("%d\n",c);
printf("%d\n",d);
printf("%d\n",e);
printf("%d\n",f);
printf("%d\n",g);
printf("%d\n",h);
printf("%d\n",i);
printf("%d\n",j);
printf("%d\n",k);
}