-->
Linux
Menu
Home
AU Complete
Question Papers
Syllabus
Subject Notes
Internal Marks
Internal Exam Timetable
AU Nov Dec 2018 Timetable
Anna University Updates
Anna University Results
School Study Materials
SSLC Study Materials
HSC Study Materials
Home
C PROGRAMS
c program that exceeds maximum int size on your system
c program that exceeds maximum int size on your system
Rejinpaul
7:06 AM
Share to Facebook
Share to X
#include
int main(void)
{
int i = 2147483647;
unsigned int j = 4294967295;
printf("%d %d %d\n", i, i+1, i+2);
printf("%u %u %u\n", j, j+1, j+2);
return 0;
}
Here is the result for Your system:
2147483647 -2147483648 -2147483647
4294967295 0 1
Newer Post
Older Post
Related Post
0 Comments
Subscribe to:
Post Comments (Atom)
Popular Posts
how to Shutting Down or Rebooting fedora Linux in command mode
Shutting Down or Rebooting Linux Look at all these shutdown and reboot commands: shutdown, halt, init 0, poweroff, Ctrl-Alt-Delete, etc. ...
how to add new user in linux fedora
Adding a User To add a user do the following: # groupadd john # useradd -g john -c “John Doe” -m -d /home/john -s /bin/bash john # p...
how to create Files and Directories in linux fedora environment
Creating Files and Directories You want to organize your files by placing them in directories. But where do directories come from? For th...
List of Linux basic commands
List of commands here
Unix/Linux Command Reference
how to find User's UID and GID in fedora linux
Finding a User's UID and GID You want to know a quick way to check the UIDs of users and see what groups they belong to. Use the i...
How to set file ownership with chown command in fedora linux
Setting File Ownership with chown You need to change ownership on a file or directory. Perhaps you've copied something to someone els...
how to add users and Adding Groups in fedora linux ubuntu fedora14
Adding Groups with groupadd You need to create some new user or system groups. Any server programs that you install should have their own...
Installing Debian Packages from CD-ROM in linux
Installing Debian Packages from CD-ROM You want to install packages from a CD-ROM. The process we've just described assumes you want ...
how to Detect Hardware in fedora linux with lspci
Detecting Hardware with lspci You're looking at new systems, or installing Linux on a box that used to run a different OS, and you...
Recent Posts
0 Comments