Problem 2.1 Determine the size,minimum and maximum value following data types. Please specify if your machine...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2.1 Determine the size,minimum and maximum value following data types. Please specify if your machine is 32 bit or 64 bits in the answer. • char • unsigned char • short • int • unsigned int • unsigned long float C programming language Types, operators, expressions Hint: Use sizeof() operator,limits.h and float.h header files Problem 2.2 Write logical expressions that tests whether a given character variable c is lower case letter upper case letter • digit white space (includes space,tab,new line) Problem 2.3 Using precedence rules, evaluate the following expressions and determine the value of the vari- ables (without running the code). Also rewrite them using parenthesis to make the order explicit. • Assume (x-10,y=2,z=2;).Expression: z=y=x+++++y*2; Assume (x=10,y=4,z=1;). Expression: y>>= x&0x2 && z Problem 2.4 Determine if the following statements have any errors. If so, highlight them and explain why. • int 2nd value=10; • Assume (x=0,y=0,alliszero-1). alliszero =(x=1) && (y=0); Assume (x-10,y=3,z=0;). y=++x+y;z=z-->x; 1 Problem 2.1 Determine the size,minimum and maximum value following data types. Please specify if your machine is 32 bit or 64 bits in the answer. • char • unsigned char • short • int • unsigned int • unsigned long float C programming language Types, operators, expressions Hint: Use sizeof() operator,limits.h and float.h header files Problem 2.2 Write logical expressions that tests whether a given character variable c is lower case letter upper case letter • digit white space (includes space,tab,new line) Problem 2.3 Using precedence rules, evaluate the following expressions and determine the value of the vari- ables (without running the code). Also rewrite them using parenthesis to make the order explicit. • Assume (x-10,y=2,z=2;).Expression: z=y=x+++++y*2; Assume (x=10,y=4,z=1;). Expression: y>>= x&0x2 && z Problem 2.4 Determine if the following statements have any errors. If so, highlight them and explain why. • int 2nd value=10; • Assume (x=0,y=0,alliszero-1). alliszero =(x=1) && (y=0); Assume (x-10,y=3,z=0;). y=++x+y;z=z-->x; 1
Expert Answer:
Answer rating: 100% (QA)
Explanation For a 32bit machine char Size is 1 byte Minimum value is 128 and maximum ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Jeri is a sole proprietor who has owned and operated a lighting design business for many years. She runs the business from her home, and in 2022, her business generated a net profit of $25,800. Jeri...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Mario and Kaitlin are married and file a joint tax return. They have adjusted gross income of $385,000 that includes $4,700 of investment income ($3,000 short-term capital gains and $1,700 of...
-
Aubry, a cash basis and calendar year taxpayer, decides to reduce his taxable income for 2013 by buying $65,000 worth of supplies for his business on December 27, 2013. The supplies will be used up...
-
The continuous random variable X has probability density function given by Find E(1/X 2 ). Give your answer in the form a In b + c. 3 (x-10x+ 22) 4 < x < 6 16 f(x) = otherwise.
-
Under CCP 581(b)(1), barring certain exceptions, without a court order a plaintiff has an absolute right to dismiss his or her complaint any time before the commencement of trial. Further investigate...
-
If you deposit money today in an account that pays 6.5% annual interest, how long will it take to double your money?
-
The adjusted trial balance of Personal Financial Planners appears below. Using the information from the adjusted trial balance, you are to prepare for the month ending December 3 1 , 2 0 2 0 : 1 . an...
-
Janice Morgan, age 24, is single and has no dependents. She is a freelance writer. In January 2021, Janice opened her own office located at 2751 Waldham Road, Pleasant Hill, NM 88135. She called her...
-
Q14 (a) An inward flow reaction turbine is supplied with 100 m^3/s of water under an effective head of 150 m. The diameter at the inlet and outlet are 3.5 m and 2.35 m, respectively. The inlet vane...
-
A farmer hitches her tractor to a sled loaded with firewood and pulls it 20 m along level ground. The total weight of the sled and load is 14,700 N. The tractor exerts a constant 5,000 N force at an...
-
How do we envisage aligning our strategic imperatives with overarching organizational goals, ensuring coherence and synergy across diverse operational domains ?
-
A 50 wt% Ni-50 wt% Cu alloy is slowly cooled from1400C (2550F) to 1150C (2100F). (a) At what temperature does the first solid phaseform? (b) What is the composition of this solidphase? (c) At what...
-
What analytical frameworks and decision-making paradigms underpin our strategic formulation process, enabling us to navigate complex and dynamic business landscapes?
-
The current being read from the gauge what does it represent? Is it the maximum current that can be generated by the solar panel?
-
Q. Explain Banking of Road.
-
The maximum pressure that can be developed for a certain fluid power cylinder is 15.0 MPa. Compute the required diameter for the piston if the cylinder must exert a force of 30 kN.
-
Brian and Kim have a 12-year-old child, Stan. For 2012, Brian and Kim have taxable income of $52,000, and Stan has nonqualifying dividend income of $4,500 and investment expenses of $250. No election...
-
On February 2, 2012, Alexandra purchases a personal computer for her home. The computer cost $3,000. Alexandra uses the computer 80 percent of the time in her accounting business, 10 percent of the...
-
Walter, a single taxpayer, purchased a limited partnership interest in a tax shelter in 1985. He also acquired a rental house in 2012, which he actively manages. During 2012, Walter's share of the...
-
What are generally accepted accounting principles (GAAP)?
-
Describe the concepts, principles and constraints underlying financial statements.
-
Accounting is the process of: (a) recognising, measuring, recording and communicating. (b) identifying, measuring, recording and communicating. (c) identifying, recording, classifying and...
Study smarter with the SolutionInn App