Question

What will be the output of the following code snippet?

int num = 10;

int *ptr = #

printf("%d", *ptr);

A 10 Correct Answer Incorrect Answer
C The memory address of 'num' Correct Answer Incorrect Answer
D Garbage value Correct Answer Incorrect Answer

Solution

10

Practice Next

Relevant for Exams:

×
×