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 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
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, 13.03.2022 09:40
question
Mathematics, 13.03.2022 09:40
question
Mathematics, 13.03.2022 09:50
Questions on the website: 13722360