Question: 1.Which data type is used to initialize the variable x with a value 3.5 (x=3.5) ? a. char b. int c. string d. float 2.Which
1.Which data type is used to initialize the variable x with a value 3.5 (x=3.5) ?
a.
char
b.
int
c.
string
d.
float
2.Which data type is used to initialize the variable k with value 25.
a.
char
b.
float
c.
string
d.
int
3.What is the result of the following statements if used in a program? int a=3; float b=4.5; float c=b; printf("%f",c);
a.
1.50000
b.
7.500000
c.
4.500000
d.
3
4.Which is the correct statement to print the value of variable B? int A = 100; float B = 510.5, C = 20.75;
a.
printf( Value of B= %s B);
b.
printf( Value of B= %f , B);
c.
printf( Value of B= %d , B);
d.
printf( Value of B = %c, B);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
