C Exercises: Demonstrate the working of keyword long
18. Demonstrating the 'long' Keyword
Write a C program to demonstrate the working of the keyword long.
Sample Solution:
C Code:
Sample Output:
Demonstrate the working of keyword long ------------------------------------------ The size of int = 4 bytes The size of long = 8 bytes The size of long long = 8 bytes The size of double = 8 bytes The size of long double = 16 bytes
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to print the sizes of int, long, and long long data types using the sizeof operator.
- Write a C program to perform arithmetic operations on long integers and observe the effects of overflow.
- Write a C program to declare a long double variable and perform high-precision arithmetic calculations.
- Write a C program to demonstrate implicit type conversion between int, long, and float values and print the results.
C Programming Code Editor:
Previous: Write a C program to abort the current process.
Next: C Basic Input Output Statement Exercises Home
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.