-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int var = 10;
int *p = &15;
printf("%p\n", p);
}
-
- 10
- 15
- Garbage value
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c: In function ‘main’:
main.c:5:18: error: lvalue required as unary ‘&’ operand
int *p = &15;