Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a statement that declares a variable woohoo and initializes it to 1. Selec

ID: 3835460 • Letter: W

Question

Write a statement that declares a variable woohoo and initializes it to 1. Select an appropriate type. B. Write a statement to declare a variable pi and initialize it to 3.14159. Select an appropriate type. C. Write an if-statement that checks if variable c is within a range, in particular that c is greater or equal to 'a' or less than or equal to 'z'. If it is within the range, do nothing. If not, set variable c to 25. D. Write an expression that determines computes the bitwise-are of x and y (both x and y are declared and assigned values). E. What type of value docs main usually return? F. Sometimes, main takes two arguments: argc and argv. What is the purpose of argc? G. Write a statement that prints the character'?' five times (with no spaces in between). H. Write a statement that prints out a double value stored in variable v. Assume v is already declared.

Explanation / Answer

A.

int woohoo=1;

B.

float pi=3.14159;

C.

if(c>=a||c<=z) // the variable c within the range

else

c=25;

d.

Bitwise and operator is &.

e.

main usually return boolean that is 0 or 1.

f.

if the main contain argc, which indicates the name of the variable argc stands for "argument count";

Where argc contains the number of arguments passed to the program.

g.

for (int i = 0; i < 5; i++) {

printf("%c",arr[i]);

}

h.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote