You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-12 06:09:39
Compiler Time Error:
C Programming Quizzes C Language Pointer
Directions:
#include<stdio.h>
void main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
}
Question:
What will be the output of the following program?
Option A):
Compiler time error
Option B):
Undefined behavior
Option C):
Segmentation fault/runtime crash
Option D):
10
Correct Answer is Option A):
Compiler time error
Failure is the first step towards seccess.
Offline
2015-09-12 06:09:39
- Advertisement
- Ads By Google
Re: Compiler Time Error:
\n
Pages:: 1