Need help multiple choice Thank you Which the following isar

Need help multiple choice.

Thank you
Which the following is(are) legal way(s) to write the number 97? \'a\' 061 97 0 times 141 None of above Assume that a program contains the following declarations: char c = \'\\1\'; short s = 2; int I = -3; float f = 6.5f; double d = 7.5 Give the type of each expression listed below: c*i f/c d/s f-d char float double float int char shot double int float double double None of above An array named as count is defined in a C program function, to get the number of elements in this array, which expression(s) can be used? count.length sizeof(count) sizeof(count)/sizeof(count[1]) sizeof(count)/sizeof(count[0])

Solution

1.

#include <iostream>

using namespace std;

int main()
{
cout <<\'a\'\';

return 0;
}

#include <iostream>

using namespace std;

int main()

{
cout <<97;

return 0;
}

Option a and c is correct choice.

2.

(1) c*i - int

(2) f/c - float

(3) d/s - double

(4) f-d - double

Option c is correct choice.

3.

To get number of elements in an array use

Option c and d is correct choice.

Need help multiple choice. Thank you Which the following is(are) legal way(s) to write the number 97? \'a\' 061 97 0 times 141 None of above Assume that a progr

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site