Please show detailed working and answer all of the following C programing multip
ID: 3831992 • Letter: P
Question
Please show detailed working and answer all of the following C programing multiple choice questions below:
What is the output of the following program fragment? (Let * represent a blank) x = 25.6284; printf ("%6.1f ", x); **25.6284 **25.628400 **25.628 **25.6 Which of the following statements about the switch statement is true? Multiple case labels can be associated with one series of actions. The case label values can be characters, integrals, or reals. If no default label is provided, the results are unpredictable. The switch expression must be a unary expression. What is the value of x after the following statements execute? int x; x = (5Explanation / Answer
16:
#include<stdio.h>
#include<conio.h>
main()
{
double x = 25.6284;
printf("%6.1f ",x);
}
o/p: 25.6 because float always take two number after decimal
***************************************************************************************
18:
#include<stdio.h>
#include<conio.h>
main()
{
int x;
x=(5<=3 && 'A' < 'F')? 3:4;
printf("%d",x);
}
o/p: 4
first 5<=3 it is false and 'A' < 'F' it is true so F && T => F so it will print 4
*******************************************************************************
19) example of prototype
a: float roi(int,double);
********************************************************************************
20) do -while loop because it checks the condition after the block has been executed
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.