C program and output
/* CodeBhavya | PPS AR25 | Learning example */
#include <stdio.h>
#include <limits.h>
int main(void)
{
printf("sizeof(char) = %zu C byte\n", sizeof(char));
printf("CHAR_BIT is at least 8: %d\n", CHAR_BIT >= 8);
printf("int supports at least -32767..32767: %d\n",
INT_MIN <= -32767 && INT_MAX >= 32767);
return 0;
}
Sample input and output
This example uses values already written in the program.
Output
sizeof(char) = 1 C byte
CHAR_BIT is at least 8: 1
int supports at least -32767..32767: 1
Related exam questions
Topic matches from the supplied JNTUH papers. Marks below are the printed allocations for those questions.
- September/October 2021 · Q6(a) · 7 marks
Define data type. Briefly discuss the fundamental data types supported in C.
Paper P01 · page 1 - September 2023 · Q1(c) · 1 marks
Define the enumeration data type in C.
Paper P06 · page 1 - January/February 2024 · Q4(a) · 4 marks
Explain how to define and use an enumeration data type in C.
Paper P08 · page 1
View all matching exam references →