Question

Consider the following part of a C program float a, b

b = (a > 4 ? 2 : 9);

Assuming that a has values of 3 and 6, the values stored respectively will be

a.

2 and 9

b.

2.0 and 9.0

c.

2.0 and 2.0

d.

9.0 and 2.0

Answer: (d).9.0 and 2.0

Interact with the Community - Share Your Thoughts

Uncertain About the Answer? Seek Clarification Here.

Understand the Explanation? Include it Here.

Q. Consider the following part of a C program float a, b b = (a > 4 ? 2 : 9); Assuming that a has values of 3 and 6, the values stored respectively will be

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. Consider the following operation in a computer

1. Multiplication of scalar
2. Iversion of matrix
3. Printing a line of 120 characters on a printer

Which of the above is a subroutine?

Q. For most static RAM the maximum access time is about

Q. In direct addressing mode of 8085

Q. Which of the following is a valid real variable in FORTRAN 77?

Q. To realize the full power of 8086 the pin of 8086 connected to ground is

Q. Which of the following is not an assembler directive in 8085?

Q. Which of the following expressions is invalid in Fortran?

Q. Which of the following is correct in FORTRAN 77?

Q. P flag is for parity.

Q. In 8086 the number of lines on which data and address is multiplexed is

Q. Consider the following program for 8085

MVIA, 00H
LXIH, OEAOFG
V LDAZ ADI 0005H

What does this program do?

Q. The total number of pins in 8085 are

Q. Which of the following statements are executable in FORTRAN 77?

Q. In static RAM 6264 the number of address inputs are

Q. The function to Calculate the maximum value in the specified field of a database is

Q. Which of the following is a valid logical expression in Pascal?

Q. In a typical microcomputer data transfer takes place between

Q. In 8085 the pins for + 5 V input and ground are

Q. The normalised form of 1.81 x 10‾¹¹ is

Q. 'Burst refresh' in DRAM is also called

Recommended Subjects

Are you eager to expand your knowledge beyond Electronics and Communication Engineering? We've handpicked a range of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of various subjects. Happy exploring!