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
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
Retype the statements, correcting the syntax errors. system.out.println("num: " + songnum); system.out.println(int songnum); system.out.println(songnum " songs"); note: these activities may test code with different test values. this activity will perform two tests: the first with songnum = 5, the second with songnum = 9. see how to use zybooks.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
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, 12.08.2020 04:01
question
Mathematics, 12.08.2020 04:01
question
Mathematics, 12.08.2020 04:01
question
Mathematics, 12.08.2020 04:01
question
Biology, 12.08.2020 04:01
question
Physics, 12.08.2020 04:01
question
Mathematics, 12.08.2020 04:01
Questions on the website: 13722360