You are not logged in.

#1 2015-09-17 03:44:43

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Compiler Error:

C Programming Quizzes C Language Basic

Directions:
Determine output:

Question:
void main()
{
      int const *p=5;
      printf("%d", ++(*p));
}

Option A):
5
Option B):
Compiler Error
Option C):
Garbage Value
Option D):
4

Correct Answer is Option B):
Compiler Error


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-17 03:44:43

Advertisement
Ads By Google

Re: Compiler Error:



Board footer