What is the output of this C code? int main() { int i = 10; void *p = &i; printf("%d ", (int)*p); return 0; }

Question:
What is the output of this C code?

int main()
{
int i = 10;
void *p = &i;
printf("%d
", (int)*p);
return 0;
}

1. Compile time error

2.Segmentation fault/runtime crash

3.10

4.Undefined behaviour

Posted Date:-2022-03-20 08:19:28


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!