You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Void Main:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … ge-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


Failure is the first step towards seccess.

2015-09-12 06:31:19

Advertisement
Ads By Google

Re: Void Main:



Board footer