You are not logged in.

#1 2015-09-12 06:31:17

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

Void Main:

C Programming Quizzes C Language Pointer

Directions:
void main()
{
   char *msg = "hi";
   printf(msg);
}

Question:
Find the output of the following program.

Option A):
Error
Option B):
hi
Option C):
Garbage Value
Option D):
h

Correct Answer is Option B):
hi


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

2015-09-12 06:31:17

Advertisement
Ads By Google

Re: Void Main:



Board footer