Computer Science: A Structured Programming Approach Using C, Third Edition
3rd Edition
ISBN: 9780534491321
Author: Behrouz A. Forouzan, Richard F. Gilberg
Publisher: Course Technology, Inc.
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 16PS
Which of the following is not a floating-point constant in C?
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
7) Under computer integer arithmetic, the quotient J/K of two integers
J and K is less than or equal to the usual quotient. True or false?
Given variable name: num.cpp is this valid or invalid?
(A) valid
B) invalid
Which of the following statements is True?
a.
Floating point addition is not generally associative which can be seen when values differ greatly in magnitude, the smaller value tends to be zeroed out or may lose significant digits when making the exponents the same.
b.
Floating point addition is generally associative which can be seen when values differ slightly in magnitude, the larger value tends to be zeroed out or may lose significant digits when making the exponents the same.
Chapter 2 Solutions
Computer Science: A Structured Programming Approach Using C, Third Edition
Ch. 2 - The purpose of a header file, such as stdio.h, is...Ch. 2 - Prob. 2PSCh. 2 - The C standard function that receives data from...Ch. 2 - Which of the following statements about the...Ch. 2 - Which of the following statements about block...Ch. 2 - Prob. 6PSCh. 2 - Which of the following is not a data type?...Ch. 2 - The code that establishes the original value for a...Ch. 2 - Prob. 9PSCh. 2 - Prob. 10PS
Ch. 2 - To print data left justified, you would use a in...Ch. 2 - Prob. 12PSCh. 2 - One of the most common errors for new programmers...Ch. 2 - Which of the following is not a character constant...Ch. 2 - Which of the following is not an integer constant...Ch. 2 - Which of the following is not a floating-point...Ch. 2 - Prob. 17PSCh. 2 - Which of the following is not a valid identifier...Ch. 2 - What is the type of each of the following...Ch. 2 - What is the type of each of the following...Ch. 2 - Which of the following identifiers are valid and...Ch. 2 - Which of the following identifiers are valid and...Ch. 2 - What is output from the following program...Ch. 2 - Prob. 24PSCh. 2 - Find any errors in the following program....Ch. 2 - Find any errors in the following program....Ch. 2 - Prob. 27PSCh. 2 - Prob. 28PSCh. 2 - Prob. 29PSCh. 2 - Code the variable declarations for each of the...Ch. 2 - Code the variable declarations for each of the...Ch. 2 - Write a statement to print the following line....Ch. 2 - Write a program that uses four print statements to...Ch. 2 - Write a program that uses four print statements to...Ch. 2 - Write a program that uses defined constants for...Ch. 2 - Prob. 36PSCh. 2 - Prob. 37PSCh. 2 - Write a program that prompts the user to enter an...Ch. 2 - Write a C program using printf statements to print...Ch. 2 - Write a program that reads a character, an...Ch. 2 - Write a program that prompts the user to enter...Ch. 2 - Write a program that reads 10 integers and prints...Ch. 2 - Write a program that reads nine integers and...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Determine the value of each of the following expressions. (For decimal numbers, round your answer to two decimal places.) (1) abs(-18) fabs(20.5) fabs(-87.2) pow(4, 2.0) pow(8.4, 3.5) sqrt(7.84) sqrt (196.0) sqrt (38.44)* pow(2.4, 2) / fabs(-3.2) floor(27.37) ceil(19.2) floor(12.45) + ceil(6.7) floor (-8.9) + ceil (3.45) floor(9.6) / ceil(3.7) pow(-4.0, 6.0) pow(10, -2.0) pow(9.2, 1.0 / 2)arrow_forwardDetermined if the following given below are regular expressions or NOT.arrow_forwardEncode the following valurs into the floating-point format discussed in the text. indicate the occurrence of truncation errors. a. 2¼. b. 5¼. c. ¾. d. -3½ e. -4⅜arrow_forward
- Which is false about data type? Reserved word for integer is int Reserved word for a floating number is double or float Reserved word for character is char Reserved word for number is numarrow_forwardWhich of the following is a convention in Mathematics? a. Sets b. Fractals c. Digits 0 to 9arrow_forwardCan you do the above coding in python to calculate prime or notarrow_forward
- Average of Three Compute the floating-point average of the values in the variables num1, num2, and num3. Assume these variables already contain values. Store the result in the variable avg.arrow_forwardAnswer the following questions: Provide a single C statement that would ask 3 integers from the user through keyboard input and save each value into the variables a, b, and c. Provide a single C statement that would ask 3 floating-point numbers from the user through keyboard input and save each value into the variables d, e, and f. Provide a C statement that would ask a character from the user through keyboard input and save the value into the variable g. Provide a C statement that would ask a string of length 5 from the user through keyboard input and save the value into the string variable h. Insert the following C statements into the code above. And supposing the user typed in WHATCHAMACALLIT. What are the outputs of the second AND 3rd printfs? Explain why the printouts are that way. printf("Enter a string : "); scanf("%c%2s",&g,h); printf("%c\n",g); printf("%s\n",h);arrow_forwardconvert to decimal: 123, 1234, 12345, and DDD16 convert the decimal integer 3177 to base 2, 6, and 16. Remember to use A,B,..., F to represent base 16 digits from 10 to 15, if needed.arrow_forward
- Which is called binary values? a. 0's and 2's b. 0's and 1's c. 1's and 2's d. 1's and 3'sarrow_forwardWhich of the following is true for variable names in C? Select one: a. Variable names can start with a digit b. They can contain alphanumeric characters as well as special characters c. It is not an error to declare a variable to be one of the keywords d. Variable can be of a fixed lengtharrow_forwardnumbers are in twos complimentarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
What Are Data Types?; Author: Jabrils;https://www.youtube.com/watch?v=A37-3lflh8I;License: Standard YouTube License, CC-BY
Data Types; Author: CS50;https://www.youtube.com/watch?v=Fc9htmvVZ9U;License: Standard Youtube License