Question: Which of the following is integral data type?
A
B
C
D
E
void
B
char
C
float
D
double
E
None of these
Note: In c char is integral data type. It stores the ASCII value of any character constant.
#include<stdio.h> int main(){ volatile int a=11; printf("%d",a); return 0; }
#include<stdio.h> const enum Alpha{ X, Y=5, Z }p=10; int main(){ enum Alpha a,b; a= X; b= Z; printf("%d",a+b-p); return 0; }
#include<stdio.h> int main(){ char a=250; int expr; expr= a+ !a + ~a + ++a; printf("%d",expr); return 0; }
#include<stdio.h> int main(){ int a=-5; unsigned int b=-5u; if(a==b) printf("Avatar"); else printf("Alien"); return 0; }
#include<stdio.h> extern enum cricket x; int main(){ printf("%d",x); return 0; } const enum cricket{ Taylor, Kallis=17, Chanderpaul }x=Taylor|Kallis&Chanderpaul;
#include<stdio.h> enum A{ x,y=5, enum B{ p=10,q }varp; }varx; int main(){ printf("%d %d",x,varp.q); return 0; }