Question: C programming CODE (please fill in here): int main_task1(void) { int number = 50; printf(The number is %d , number); return 0; } task: Change
C programming
CODE (please fill in here):
int main_task1(void) { int number = 50; printf("The number is %d ", number); return 0; } task:
Change the above code in such a way that it prints hexadecimal representation of number = 300 with 4 digits (uses alphabetical hexadecimal digits as capitals).
so the output should be:
The number is 0x0012C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
