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, 22.06.2019 08:10
Alook-up table used to convert pixel values to output values on a monitor. essentially, all pixels with a value of 190 or above are shown as white (i.e. 255), and all values with a value of 63 or less are shown as black (i.e. 0). in between the pixels are scaled so that a pixel with a value p is converted to a pixel of value 2/127 βˆ’+3969). if a pixel has a value of 170 originally, what value will be used to display the pixel on the monitor? if a value of 110 is used to display the pixel on the monitor, what was the original value of the pixel?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
What is the name of the sound effect that danny hears
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
If the input is negative, make numitemsPointer be null. Otherwise, make numitemsPointer point to num...
Questions
question
Mathematics, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
Questions on the website: 13722359