subject

If the input is negative, make numitemsPointer be null. Otherwise, make numitemsPointer point to numitems and multiply the value to which numitems Pointer points by 10. Ex: If the user enters 99, the output should be: Items: 990
#include
test passed int main(void) {
int* numItemsPointer;
int numItems; scanf("%d", &numItems);
All test passed /*
Your solution goes here
*/ if (numItems Pointer == NULL)
{ printf("Items is negative\n");
else {
printf("Items: %d\n", *numItemsPointer);
return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
2.)how does a graphical user interface (gui) on a touchscreen interface differ from a gui on a desktop or laptop? a.)a finger or stylus is used instead of a pointer. b.) a magic wand is used instead of a pointer. c.)users speak commands instead of using a pointer. d.)users visualize commands instead of using a pointer.
Answers: 1
question
Computers and Technology, 22.06.2019 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
You know the right answer?
If the input is negative, make numitemsPointer be null. Otherwise, make numitemsPointer point to num...
Questions
question
Mathematics, 05.02.2022 04:30
question
Mathematics, 05.02.2022 04:30
Questions on the website: 13722362