main()
{
float a=3.2e40;
printf("%d",a);
}
Answer Posted / vignesh1988i
as for as i know ,
here however 'a' is a float variable when it comes
to printf , the floating numbers will be truncated and it
outputs as 3
thank u
Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
Write a program to swap two numbers without using a temporary variable?
What is the difference between ++a and a++?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What are reserved words with a programming language?
What are the functions to open and close the file in c language?
What are external variables in c?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
What is a ternary operator in c?
What are the advantages and disadvantages of a heap?
Explain the difference between null pointer and void pointer.
What is null character in c?
What is #include stdlib h?
What is signed and unsigned?
What is c basic?