subject

If the input is negative, make numItemsPointer be null. Otherwise, make numItemsPointer point to numItems and multiply the value to which numItemsPointer points by 10.
Ex: If the user enters 99, the output should be:
Items: 990

#include
int main(void) {
int* numItemsPointer;
int numItems;
scanf("%d", &numItems);

/* 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 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
You know the right answer?
If the input is negative, make numItemsPointer be null. Otherwise, make numItemsPointer point to num...
Questions
question
Advanced Placement (AP), 21.04.2021 17:50
question
Biology, 21.04.2021 17:50
Questions on the website: 13722361